Skip to content

v0.29.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 10:34
· 39 commits to main since this release
a69e112

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, anyOf or oneOf member that is a $ref into 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: false is checked as additionalProperties: false is: a field that neither the object nor any of its allOf branches, inline or through a $ref, declares is rejected. It stays unchecked, with a warning, where an anyOf, oneOf, if/then/else, not, dependentSchemas, patternProperties, a branch's own additionalProperties or unevaluatedProperties, or a keyword beside a $ref branch evaluates properties, and in a schema whose $schema names 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