Repository navigation
v0.8.0
Highlights since v0.7.0
go install github.com/plheide/aapi-codegen/cmd/aapi-codegen@latestworks. aapi-codegen depends ongithub.com/plheide/go-jsonschemav0.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
oneOfof a components$refandnullis a pointer to that type, notinterface{}; - a nullable
enumis a typed enum, not a struct holdinginterface{}; format: int32andformat: int64giveint32andint64, notint;format: dateandformat: timeusegithub.com/plheide/go-jsonschema/pkg/types;- a components array checks its own
minItemsandmaxItems.
All changes: v0.7.0...v0.8.0. The rc.1 to rc.5 release notes describe each step.