Releases: oapi-codegen/oapi-codegen
Releases · oapi-codegen/oapi-codegen
Bug fixes and generic objects
- Fixed a bug with the json "omitempty" tag.
- Support generic objects via map[string]interface{} and generic values via interface{}
Client code generation
This is a major change which the client side boilerplate which interoperates with the server side.
Fix crash in parameter components
Parameters defined by components which were stored in /components/parameters caused a crash. Fixed.
Improve parameter handling
Most parameter types, except for cookies, now work properly.
Make inline swagger nicer
Split up inlined data lines to make pedantic tools happy.
Inline swagger spec
Inlined the swagger spec into the generated code.
You can get the Swagger object by calling GetSwagger(). This will be used in the future for intelligent unmarshaling of data based on the spec.
Remove some log messages
When our middleware logs its own messages, it interleaves with whatever logging the user is doing, so just set errors on the context instead.
Minor bug fix
Fixed an issue of having unused imports.