-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
The goal of this issue is to implement proper example generation for Try it out feature from JSON Schema 2020-12 schemas.
The course of action here is to amend existing samples plugin to work with JSON Schema 2020-12 and not to blow up. We're aiming for quick win here. If time will allow us, we want to approach JSON Schema 2020-12 -> data generation in more complex way, similar to https://github.com/json-schema-faker/json-schema-faker
TODO:
- extend ability to generate data for JSON Schema 2020-12 + OpenAPI 3.1 formats (#1, #2)
- add support for
typekeyword defined as an array - add support for
constkeyword - amend semantics for
exclusiveMaximumandexclusiveMinimumkeywords - add support for
multipleOfkeyword - add support for
uniqueItemskeyword - add support for
contains,minContainsandmaxContainskeyword - refactor support for
maxLength,minLengthandpatternkeywords - refactor support for
maxProperties,minPropertiesandrequiredkeywords - add support for
contentEncodingkeyword - add support for
contentMediaTypekeyword - add support for
contentSchemakeyword - separate constraints applicators for numbers and strings
- apply open/closed principle to plug custom encodings + media types
- priority order for handling
defaultandexamplekeyword - add support for
exampleskeyword - add support for Boolean JSON Schema
- provide proper
typekeyword inference - refactor merging schemas
- general cleanup
What we'll not be adding support for (in alpha/beta phase):
NOTE: the list below needs to be itemized into individual GitHub issues