-
Notifications
You must be signed in to change notification settings - Fork 230
fix incorrect union codec when default value is string of null #293
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love the global option here, although that seems to be sort of an existing pattern for this library. Any chance you would consider plumbing a new API that is NewCodecWithOptions and pass in this option that way instead of doing it globally?
| // } | ||
| func NewCodec(schemaSpecification string) (*Codec, error) { | ||
| return NewCodecFrom(schemaSpecification, &codecBuilder{ | ||
| buildCodecForTypeDescribedByMap, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this call the with options version so this is only defined once?
|
Is there any plan to release a new version? @rockwotj |
|
@wk989898 done |
close #280
Add option about the string literal "null" be coerced to a
nil