-
Notifications
You must be signed in to change notification settings - Fork 71
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
Struct tag boolean values are not parsed properly when specified with double quotes #49
Comments
I've reproduced in a draft PR the ultimate issue: a person cannot set a |
Updated the PR to demonstrate that a bool pointer is necessary to be able to have a boolean field that defaults to |
The scope of this issue is now to document the boolean pointer workaround in the README. I'll open a PR for that and link it shortly. |
The README shows this example in the Sample struct:
When running the tests in the
defaults_test.go
boolean values are not properly being parsed when specified in double quotes above. The following pattern passes:However this is not a preferred way to specify tags in yaml. I'm validating whether this is based on a recent change to the defaults library behavior or if it is related to a specific go version. If I can validate the isssue, I may open a PR related to this soon.
The text was updated successfully, but these errors were encountered: