Skip to content

Conversation

@wk989898
Copy link
Contributor

@wk989898 wk989898 commented Feb 24, 2025

close #280
Add option about the string literal "null" be coerced to a nil

Copy link
Collaborator

@rockwotj rockwotj left a 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?

@wk989898 wk989898 requested a review from rockwotj April 22, 2025 07:48
// }
func NewCodec(schemaSpecification string) (*Codec, error) {
return NewCodecFrom(schemaSpecification, &codecBuilder{
buildCodecForTypeDescribedByMap,
Copy link
Collaborator

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?

@wk989898 wk989898 requested a review from rockwotj April 23, 2025 02:40
@rockwotj rockwotj merged commit fa9d152 into linkedin:master Apr 23, 2025
7 checks passed
@wk989898
Copy link
Contributor Author

wk989898 commented Jun 6, 2025

Is there any plan to release a new version? @rockwotj

@rockwotj
Copy link
Collaborator

rockwotj commented Jun 9, 2025

@wk989898 done

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.

Converting default value string of null to nil breaks legitimate schema.

2 participants