Skip to content

v0.12.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 23:00
· 9 commits to main since this release
0e0a8ca

Highlights

  • Keywords beside a message payload's own $ref, such as required, now print a warning, as go-jsonschema warns about keywords beside a $ref everywhere else. They are still ignored. For example:

    aapi-codegen: warning: schema fidelity: channels.orders.messages.OrderPlaced.payload does not enforce all it declares: required beside $ref not checked
    
  • A payload schema that is itself a $ref to another schema, such as a components.schemas entry that only refers to another one, gave code that used a type declared nowhere, so it didn't compile. The generator now stops with an error that says to point the payload's $ref at the other schema. A $ref to a schema of the same title works as before.

  • examples/use-aapi-codegen.sh: AAPI_CACHE is now the cache root, with a directory per version, so a custom AAPI_CACHE no longer keeps returning the first version's binary after AAPI_VERSION changes. The default cache path is unchanged. A custom AAPI_CACHE that already ended in the version gets one more level, and one more download.

  • Payload types still come from go-jsonschema v0.30.0, and the binaries are built with Go 1.26.11. Every spec in the test suite generates the same code as with v0.12.0.

All changes: v0.12.0...v0.12.1.

Changelog

  • 0e0a8ca Merge pull request #22 from plheide/fix/payload-ref-and-script-cache
  • 3c96e69 feat: warn about keywords beside a message payload's own $ref
  • 840c365 fix(examples): keep one binary per version under a custom AAPI_CACHE
  • fce49f0 fix: stop with an error when a payload schema is a $ref