Releases: oapi-codegen/oapi-codegen
Bug fixes
- Fixed a bug with correctly referencing response type references
- Add a function type for validation callbacks
Bug fixes
This release contains several bug fixes:
- Make the ClientWithResponses conform to Client
- Fix AdditionalProperties type handling
- Do some refactoring in preparation for supporting more than just JSON, and simplify the templates a bit.
AdditionalProperties changes
- Use an exported member variable for AdditionalProperties.
- Bug fixes and cleanups
Bug fix for client generator
Don't generate response fields in the ClientWithResponses for any types other than supported ones.
additionalProperties are now supported
This is a major change which adds support for additionalProperties. The server side is well supported with JSON types, but the client code generator, which supports YAML and XML objects won't parse those correctly just yet due to missing adapters for marshaling and unmarshaling. The generic client which returns http.Response will work just fine, but it's up to you to parse out the objects with additionalTypes for non-JSON.
Updates and bug fixes
- Better error message on parse errors
- Better validation of spec before generating broken code
- strings of format "json" will produce json.RawMessage fields
- int fields without format specified will create "int" not :"int32"
Client response unmarshaling and validation improvements
The generated client now generates response objects and unmarshaling code
Improved the request validator middleware for echo so that it's possible to add custom security validators.
Command line updates and bug fixes
- oapi-codegen can now generate code in four parts; types, client, server, spec. Please see the docs.
- generated client code now includes an interface for the client which is useful for mocking
- oapi-codegen now accepts a -o flag for writing output to a file
Bug fixes
Fix issues with parameter styling and incorporate some pull requests from others.
Bug fixes
Fix several issues with type conversion and code generation.