Skip to content

Releases: chrusty/openapi2jsonschema

Fixing a code generation bug

12 Apr 06:22
cabb1f2
Compare
Choose a tag to compare

Fixing a big where minus-signs were being stripped from generated Go constants.

Thanks @mtratsiuk for reporting this.

Fixes to map handling with OpenAPI3

15 Sep 16:30
7d33142
Compare
Choose a tag to compare
  • Enables "allow-nulls" unit test suite for OpenAPI3
  • Some bug fixes that prevented the tests from passing

OpenAPI 3 support

13 Sep 08:55
2b181e2
Compare
Choose a tag to compare
  • Introduces OpenAPI3 support (with the -v3 flag)
  • Maintains the original OpenAPI2 support
  • Significant refactoring of the codebase:
    • Much more modular
    • Easier to test
    • More in line with GoLang project layout conventions
    • Switched to go mod (thanks for everything glide)
    • Removed globals

Map support (from Señor Skorodudemov)

27 Dec 13:55
Compare
Choose a tag to compare
Add map support (#11)

* Add map support

* Remove spew

Bug fixes from Kim Andre Hovelstuen Pettersen

01 Jun 07:55
Compare
Choose a tag to compare

minLength and maxLength weren't being properly marshaled by nytimes/openapi2proto, so we were unable to generate JSONSchemas containing these settings.

Kim has updated the unit test suite to pick this up (as well as using JSONeq), and for now this fix has been applied in our vendor folder.

Using latest openapi2proto, and added the "allow-nulls" option

15 May 16:14
Compare
Choose a tag to compare

Sorting the output for go-constants

17 Nov 09:24
ab261db
Compare
Choose a tag to compare

Prior to this release the go-constants were unsorted, meaning that the schemas were potentially in a different order each time a go-constants file was generated (because they were fed from a map).

This release builds them in a slice instead, then sorts the schemas by their name before writing them out to files.

Supporting OpenAPI min/max field length attributes

15 Nov 11:04
Compare
Choose a tag to compare
  • This version supports min/max field-length attributes (for string validation)
  • The "official" (master) of NYTimes/Openapi2proto is vendored
  • Unsafe (back-tick / "`" characters) are translated to single-quotes in description fields (because this was potentially breaking descriptions in generated go-constants, thanks to John Actual Daily)

Supports OpenAPI "pattern" attribute

15 Nov 10:26
Compare
Choose a tag to compare

This version supports the OpenAPI "pattern" attribute (defines a RegEx used to validate values).

Currently this depends on un-merged features in https://github.com/NYTimes/openapi2proto, so a modified version is vendored with this release.