Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 10:15
· 30 commits to main since this release
343aac7

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
  • 54012b2 build: move to go-jsonschema v0.26.0
  • e50aa97 ci: build with Go 1.26.10