-
-
Notifications
You must be signed in to change notification settings - Fork 957
Open
Labels
Description
In adding x-omitzero
in #1944, it's likely not an issue (via) when both omitzero
and omitempty
are used:
If both "omitempty" and "omitzero" are specified, the field will be omitted if the value is either empty or zero (or both).
However, there may be cases that we want to only use omitzero
, so we should use a new extension,x-no-omitempty
, accordingly.
I don't have any meaningful usecases that this would be useful to add for - any feedback would be appreciated with helping work out what makes sense here!