Skip to content

Releases: oapi-codegen/oapi-codegen

Chi middleware and bug fixes

07 Jan 03:58
fbeefa1
Compare
Choose a tag to compare

Merged a few pull requests.

  • Chi server allows for middleware functions
  • Fix a bug in operations which have only cookie parameters
  • Detect non-string enums and report an error instead of crashing

time/date binding and deepObject fixes

06 Nov 18:22
Compare
Choose a tag to compare

Fixed several issues with binding time and date parameter values.

  • type aliases now bind correctly, used to be silently ignored
  • deepObject marshaled structs now unmarshal time without dropping down to date granularity
  • Added a lot of tests so this doesn't regress.

BaseURLs and config files

30 Oct 21:31
Compare
Choose a tag to compare
  • Server side generation now supports a BaseURL for registering paths. It's prepended to the paths in the OpenAPI spec, so you can host the server behind a prefix router, and still have Echo and Chi register the full path for proper path resolution
  • Command line arguments were getting unwieldy. They're still supported as-is, but you can optionally replace them with a configuration file now.

Unsigned int fields and bug fixes

04 Sep 17:02
3e0fd95
Compare
Choose a tag to compare
  • Schemas can use unsigned ints. It's not supported in swagger, but also doesn't break valid swagger
  • fixed code generation error in client response parsing which generated broken 404 handlers

Merged miscellaneous PR's

19 Aug 15:35
fae4b9e
Compare
Choose a tag to compare
  • x-go-type extension for defining custom types names
  • some error message fixes
  • load swagger spec from URL

Bug fixes

20 Jul 18:48
564d6ad
Compare
Choose a tag to compare
  • Fix type generation for path parameter lists
  • Fix additional properties handing for allOf schemas

Chi code update, and bug fixes

20 Jul 16:58
e232d16
Compare
Choose a tag to compare
  • Chi callbacks now more closely resemble those in Echo, with args being passed in similarly

External reference support and bug fixes

09 Jul 20:54
8fcd3bb
Compare
Choose a tag to compare
  • External references now work, and an '--import-mapping' parameter to oapi-codegen specifies how to find their generated Go code
  • Merged several bug fixes.

Thanks everyone for your pull requests.

Bug fixes

07 May 22:40
41a1d5c
Compare
Choose a tag to compare
  • I merged an number of bug fixes submitted via pull requests, thank you for your contributions.

Sorry for the long delays these days, things are hectic.

Bug fixes and improvements

10 Apr 16:37
140ccfe
Compare
Choose a tag to compare
  • Various bug fixes, particularly in date parsing and basePath handling
  • By default, unused component schemas don't produce Go types anymore.