Skip to content

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 22:28
· 14 commits to main since this release
76c7955

Highlights

  • Payload types come from go-jsonschema v0.30.0; v0.11.0 used v0.29.0. Generated code checks more of what a payload declares, so it can reject messages that v0.11.0 accepted:
    • dependentRequired, and the property lists of draft-07's dependencies: where a property is present, the properties it lists must be too. A schema file that declares its draft gets the keyword that draft defines; one that declares none, like an inline payload, gets both;
    • a not of required: not: {required: [a, b]} forbids having both;
    • an if/then/else keyed on one property's const or enum checks each branch keyword by keyword. Before, one branch that couldn't compile whole left the object with no conditional check.
  • Keywords beside a $ref are still ignored, but they now print a warning, except in a schema file that declares draft-07 or earlier. Keywords beside a message payload's own $ref are still dropped without one. Put them in an allOf beside the $ref instead.
  • The release binaries are built with Go 1.26.11, as v0.11.0's were.
  • Every spec in the test suite generates the same code as with v0.11.0, except the validationservice fixture, whose payload gained the new keywords.

All changes: v0.11.0...v0.12.0.

Changelog

  • 76c7955 Merge pull request #21 from plheide/build/go-jsonschema-v0.30.0
  • 7291e8d build: move to go-jsonschema v0.30.0