Skip to content

[FEATURE] Use omitempty by default #216

Description

@david-its

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

We heavily use schema to encode request parameters in URL and to avoid adding "omitempty" in all tags would like to have an ability to make it default behavior by calling Encoder.SetDefaultOmitEmpty(true).
If no objections we can submit a patch for that.

Describe the solution that you would like.

A new method Encoder.SetDefaultOmitEmpty(true) which makes omitempty to be a default behavior.

Describe alternatives you have considered.

No response

Anything else?

No response

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions