Skip to content

Releases: oapi-codegen/oapi-codegen

Bug fixes

24 Jul 23:51
Compare
Choose a tag to compare
  • Fixed a bug with correctly referencing response type references
  • Add a function type for validation callbacks

Bug fixes

17 Jul 16:32
Compare
Choose a tag to compare

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

08 Jul 16:58
Compare
Choose a tag to compare
  • Use an exported member variable for AdditionalProperties.
  • Bug fixes and cleanups

Bug fix for client generator

05 Jul 20:17
Compare
Choose a tag to compare

Don't generate response fields in the ClientWithResponses for any types other than supported ones.

additionalProperties are now supported

05 Jul 19:53
Compare
Choose a tag to compare

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

27 Jun 22:02
Compare
Choose a tag to compare
  • 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

15 Jun 00:08
Compare
Choose a tag to compare

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

28 May 19:44
Compare
Choose a tag to compare
  • 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

25 May 21:41
Compare
Choose a tag to compare

Fix issues with parameter styling and incorporate some pull requests from others.

Bug fixes

16 May 20:32
Compare
Choose a tag to compare

Fix several issues with type conversion and code generation.