5.0.0-beta.0 (2023-06-11)
Release summary
This release brings support for generating examples from JSON Schema 2020-12. Some rendering enhancements have also been added. JSON Schema 2020-12 is default JSON Schema dialect for OpenAPI 3.1.0 specification.
Bug Fixes
- export standalone preset from the npm package (#8906) (cdd0bdd), closes #8163
- json-schema-2020-12: custom OAS 3.1 formats in type inferrence (#8912) (12c7493)
- oas31: fix rendering of Schema Object inside Operation Object (#8887) (f30d89a)
Features
- samples: add support for examples keyword (#8908) (4b0b285), closes #8577
- samples: add support for const keyword (#8884) (bdad2fe), closes #8577
- samples: add support for contains, minContains, maxContains keywords (#8896) (6549eff), closes #8577
- samples: add support for contentEncoding keyword (#8899) (0483964), closes #8577
- samples: add support for contentMediaType keyword (#8903) (1925622), closes #8577
- samples: add support for contentSchema keyword (#8907) (6c622a8), closes #8577
- samples: add support for custom formats, encoders and media types (#8905) (d72b72c), closes #8577
- samples: add support for inferring schema type (#8909) (ce417d5), closes #8577
- samples: add support for new values of format keyword (#8882) (28b1233), closes #8577
- samples: add support for proper schema merging (#8910) (7bf0dd9), closes #8577
- samples: add support for regex string format (#8891) (8a91492), closes #8577
- samples: add support for type keyword defined as list of types (#8883) (3587696), closes #8577
- samples: add support for uniqueItems keyword (#8893) (1114965), closes #8577
- samples: support multipleOf keyword (#8890) (68cfe46), closes #8577
- samples: support new semantics of exclusive number ranges (#8885) (836659d), closes #8577