Skip to content

Releases: mikunn/openapi2schema

v0.5.0

05 Apr 06:36
Compare
Choose a tag to compare
  • Library returns an error if an invalid type is found from the spec instead of making an implicit conversion in some cases.
  • CLI sends errors to stdout instead of stdin

v0.4.0

04 Apr 07:55
Compare
Choose a tag to compare

Add sync version. The CLI doesn't used this, but you can define async: false when using the library to get the result directly without needing a callback.

Thanks @Zerogiven!

v0.3.2

11 Dec 09:20
Compare
Choose a tag to compare

Fix

  • Display help if CLI is run without options rather than some cryptic error
  • Make argument for option -i required
  • Log error if there are CLI options but option -i is missing

v0.3.1

22 Nov 15:50
Compare
Choose a tag to compare

Fix

  • Deep copy schema before merging allOfs to mitigate weird side effects in some cases

v0.3.0

20 Nov 12:24
Compare
Choose a tag to compare

New

  • Add option -c | --clean to clean the result from methods and endpoints that don't have any defined schemas. Use this with the --no-responses option to clean empty get schemas

Change

  • Properties marked as readOnly are removed from request schemas. If the property is defined in the required array, it will be removed as well. The property will remain untouched in responses.
  • Properties marked as writeOnly are removed from response schemas. If the property is defined in the required array, it will be removed as well. The property will remain untouched in requests.
  • The option merge-allof is removed. Merging is always applied.