Skip to content

[FEATURE] Support for omitzero similar to encoding/json from golang 1.24 #224

Open
@david-its

Description

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.

It would be great to support omitzero tag working the same way as coming golang 1.24 encoding/json package support.

Describe the solution that you would like.

omitzero tag should trigger calling IsZero() method on value and verify value specific "zero" values.
e.g. it helps with time.Time zero values support.

Describe alternatives you have considered.

No response

Anything else?

No response

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