Join GitHub today
- Swagger Json Schema Generator For Enum Key Value In Excel
- Swagger Json Schema Generator For Enum Key Value Calculator
- Swagger Json Schema Generator For Enum Key Value List
Feb 22, 2017 The specification says that enum may include null. If type does not also include null, although the validation check for the enum key word will pass, the validation check for the type key word will mean the instance fails overall validation. The inverse is also true. Usecase: I have a value which may be a number of strings, or null. Valid values are 'a', 'b', or NULL. JSON Schema Generator - automatically generate JSON schema from JSON. JSON Schema Generator - automatically generate JSON schema from JSON.
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
![Key Key](/uploads/1/2/6/0/126079280/280305157.png)
Swagger Json Schema Generator For Enum Key Value In Excel
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Swagger Json Schema Generator For Enum Key Value Calculator
commented Jun 20, 2013
There is no way to specify a Map of key/value pairs to be displayed in the UI. If the key is an enum, then all of the enum's values could be included as optional object properties. If the key is a 'string', then maybe the word 'string' with a '...' on the following line (or maybe just 'MapKey'). The value object should be expanded as per the usual rules for a model's property type. Thus type='Map[SomeEnum,SomeObject]' could be expanded as: ... 'SomeEnumVal1': { 'someObjectProperty': 'someObjectPropertyType' }, 'SomeEnumVal2': { 'someObjectProperty': 'someObjectPropertyType' }, ... And type='Map[KeyObject,Array[SomeObject]]' could be expanded as: 'MapKey[KeyObject]': [ { 'someObjectProperty': 'someObjectPropertyType' } ] ... |
Closed
commented Apr 7, 2014
This discussion is moved to the swagger-spec repository as it first needs to be resolved in the swagger specification - OAI/OpenAPI-Specification#38. |
closed this Apr 7, 2014
Swagger Json Schema Generator For Enum Key Value List
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment