Skip to content

Add -zero cli argument - #12

Merged
jmfrees merged 1 commit into
mainfrom
jmfrees/add-zero-type-cli-option
Jan 2, 2026
Merged

jmfrees merged 1 commit into
mainfrom
jmfrees/add-zero-type-cli-option

Conversation

@jmfrees

@jmfrees jmfrees commented Jan 2, 2026

Copy link
Copy Markdown
Owner

This allows users to decide how strictly they want their enum to behave. If this option is not passed, a round trip with an empty value in a request would cause unmarshal errors. And the user would have to use a pointer. But with the -zero option, we can use an empty string and get back the zero type with no errors.

This allows users to decide how strictly they want their enum to behave.
If this option is not passed, a round trip with an empty value in a
request would cause unmarshal errors. And the user would have to use a
pointer. But with the `-zero` option, we can use an empty string and get
back the zero type with no errors.
@jmfrees
jmfrees merged commit ac7145e into main Jan 2, 2026
1 check passed
@jmfrees
jmfrees deleted the jmfrees/add-zero-type-cli-option branch January 2, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant