You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Highlights
Payload types come from go-jsonschema v0.26.0; v0.8.0 used v0.25.0.
Generated code can reject messages that v0.8.0 accepted:
a oneOf of branches that only list required properties, such as "email or phone", now requires exactly one of them to be present;
an object's own if/then/else is enforced.
deprecated: true adds a // Deprecated: paragraph to the field's doc comment.
A wrapper for a union of primitive types, such as oneOf: [boolean, string], gets one constructor per type, such as NewOrderPlacedFlagBool.
The release binaries are built with Go 1.26.10. v0.8.0's were built with Go 1.26.2, which has standard-library vulnerabilities that govulncheck reports as reachable; Go 1.26.10 has none. go install builds with your own toolchain, so use Go 1.26.10 or later.
For every spec in the test suite, the generated code is byte-identical to v0.8.0's.
Changelog
343aac7 Merge pull request #16 from plheide/build/go-jsonschema-v0.26.0