Repository navigation
v0.12.0
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'sdependencies: 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
notofrequired:not: {required: [a, b]}forbids having both; - an
if/then/elsekeyed on one property'sconstorenumchecks each branch keyword by keyword. Before, one branch that couldn't compile whole left the object with no conditional check.
- Keywords beside a
$refare 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$refare still dropped without one. Put them in anallOfbeside the$refinstead. - 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
validationservicefixture, whose payload gained the new keywords.
All changes: v0.11.0...v0.12.0.