Repository navigation
v0.29.0
The fork's fifth stable release, from the same commit as v0.29.0-rc.2.
Compared with v0.28.0, an allOf, anyOf or oneOf member mapped to another Go package compiles, and unevaluatedProperties: false is checked under --strict-additional-properties. The README lists every difference from upstream.
Fixes:
- An
allOf,anyOforoneOfmember that is a$refinto a schema mapped to another Go package (--schema-package) imports that package only where a type of it is used. Where the merge copied the member's fields, the generated file did not compile: the package was imported and not used.
New checks, which reject input that v0.28.0 accepted, under --strict-additional-properties=respect-schema or strict:
unevaluatedProperties: falseis checked asadditionalProperties: falseis: a field that neither the object nor any of itsallOfbranches, inline or through a$ref, declares is rejected. It stays unchecked, with a warning, where ananyOf,oneOf,if/then/else,not,dependentSchemas,patternProperties, a branch's ownadditionalPropertiesorunevaluatedProperties, or a keyword beside a$refbranch evaluates properties, and in a schema whose$schemanames draft-07 or earlier, which doesn't have the keyword. Default flags check neither keyword, as before.
The README notes that additionalProperties: false beside allOf is checked over the merged properties, more leniently than JSON Schema, where it sees only the properties declared beside it; unevaluatedProperties: false is the standard way to close such an object.
Built with Go 1.26.11, which fixes GO-2026-6859 in net/http, and checked with govulncheck before it was published.
Changelog
- b16aa00 Merge pull request #74 from plheide/docs/readme-image-tag-v028
- aba2c5c Merge pull request #75 from plheide/fix/v029-composition
- a69e112 Merge pull request #76 from plheide/build/go-1.26.11
- 3b2ae08 ci: build with Go 1.26.11, which fixes GO-2026-6859
- 713ee1b docs(fork): name v0.28.0 in the container image example
- 5b6078a feat: check unevaluatedProperties: false like additionalProperties: false
- c328fd9 fix: import a mapped package only where its types are used
- e2d2b1c fix: leave unevaluatedProperties unchecked beside a $ref with siblings