Skip to content

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 20:41
· 34 commits to main since this release
5963727

Highlights since v0.7.0

  • go install github.com/plheide/aapi-codegen/cmd/aapi-codegen@latest works. aapi-codegen depends on github.com/plheide/go-jsonschema v0.25.0 as a normal module.
  • Receive operations that share a message type generate code that compiles. Combinations that can't work stop the generator with an error.
  • Generated files keep their doc comments and start with // Code generated by aapi-codegen, DO NOT EDIT.
  • Payload types follow go-jsonschema v0.25, so regenerate and review the diff. For example:
    • type: [string, "null"] is *string, not a named pointer type;
    • a oneOf of a components $ref and null is a pointer to that type, not interface{};
    • a nullable enum is a typed enum, not a struct holding interface{};
    • format: int32 and format: int64 give int32 and int64, not int;
    • format: date and format: time use github.com/plheide/go-jsonschema/pkg/types;
    • a components array checks its own minItems and maxItems.

All changes: v0.7.0...v0.8.0. The rc.1 to rc.5 release notes describe each step.

Changelog

  • 5963727 Merge pull request #15 from plheide/build/go-jsonschema-v0.25.0
  • 9d1ce30 build: move to go-jsonschema v0.25.0