Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): support IgnoreZero option for config.Marhsaller #153

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Jun 20, 2023

Background

Sometimes, zero value, like bool type value false should not be ignored when marshaling. Especially, when the default value is true (defined in config/config.go) and we want to set it false, the false will be marshaled as empty which will be derivated as true furtherly unexpectedly in parsing.

Checklist

Full changelogs

  • Add IgnoreZero option for config.Marshaller.

Issue reference

Related daeuniverse/dae-wing#37.

@dae-prow dae-prow bot added the feature label Jun 20, 2023
@mzz2017 mzz2017 merged commit 6458ebd into main Jun 20, 2023
13 checks passed
@mzz2017 mzz2017 deleted the fix_marshal_zerovalue branch June 20, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants