{ "title": String, "description": String, "type": String, "nullable": Boolean, "deprecated": Boolean, "readonly": Boolean, }
| Field | Description |
|---|---|
| title | String Distinct word which represents this schema |
| description | String General description of this schema, should not contain any new lines. |
| type | String JSON type of the property
|
| nullable | Boolean Indicates whether it is possible to use a null value |
| deprecated | Boolean Indicates whether this schema is deprecated |
| readonly | Boolean Indicates whether this schema is readonly |
{ "format": String, "enum": EnumValue, "default": ScalarValue, }
| Field | Description |
|---|---|
| format | String Describes the specific format of this type i.e. date-time or int64 |
| enum | EnumValue |
| default | ScalarValue |
OneOf: BooleanType | NumberType | StringType | ArrayType | CombinationType | ReferenceType | GenericType
{ "type": String, }
| Field | Description |
|---|---|
| type | String
|
{ "properties": Properties, "required": StringArray, }
| Field | Description |
|---|---|
| properties | Properties |
| required | StringArray |
AllOf: CommonProperties & ContainerProperties & StructProperties
{ "additionalProperties": PropertyValue, "maxProperties": Integer, "minProperties": Integer, }
| Field | Description |
|---|---|
| additionalProperties | PropertyValue |
| maxProperties | Integer Positive integer value |
| minProperties | Integer Positive integer value |
AllOf: CommonProperties & ContainerProperties & MapProperties
OneOf: BooleanType | NumberType | StringType | ReferenceType | GenericType
{ "type": String, "items": ArrayValue, "maxItems": Integer, "minItems": Integer, "uniqueItems": Boolean, }
| Field | Description |
|---|---|
| type | String
|
| items | ArrayValue |
| maxItems | Integer Positive integer value |
| minItems | Integer Positive integer value |
| uniqueItems | Boolean |
AllOf: CommonProperties & ArrayProperties
{ "type": String, "multipleOf": Number, "maximum": Number, "exclusiveMaximum": Boolean, "minimum": Number, "exclusiveMinimum": Boolean, }
| Field | Description |
|---|---|
| type | String
|
| multipleOf | Number |
| maximum | Number |
| exclusiveMaximum | Boolean |
| minimum | Number |
| exclusiveMinimum | Boolean |
AllOf: CommonProperties & ScalarProperties & NumberProperties
{ "type": String, "maxLength": Integer, "minLength": Integer, "pattern": String, }
| Field | Description |
|---|---|
| type | String
|
| maxLength | Integer Positive integer value |
| minLength | Integer Positive integer value |
| pattern | String |
OneOf: NumberType | StringType | BooleanType | ReferenceType
Map (String)
{ "propertyName": String, "mapping": DiscriminatorMapping, }
| Field | Description |
|---|---|
| propertyName | String The name of the property in the payload that will hold the discriminator value |
| mapping | DiscriminatorMapping |
{ "description": String, "allOf": Array (OfValue), }
| Field | Description |
|---|---|
| description | String |
| allOf | Array (OfValue) Combination values |
{ "description": String, "discriminator": Discriminator, "oneOf": Array (OfValue), }
| Field | Description |
|---|---|
| description | String |
| discriminator | Discriminator |
| oneOf | Array (OfValue) Combination values |
OneOf: AllOfProperties | OneOfProperties
Map (ReferenceType)
{ "$ref": String, "$template": TemplateProperties, }
| Field | Description |
|---|---|
| $ref | String Reference to the schema under the definitions key |
| $template | TemplateProperties Optional concrete schema definitions which replace generic template types |
OneOf: ObjectType | ArrayType | BooleanType | NumberType | StringType | CombinationType
Map (String)
{ "$import": Import, "title": String, "description": String, "type": String, "definitions": Definitions, "properties": Properties, "required": StringArray, }
| Field | Description |
|---|---|
| $import | Import |
| title | String |
| description | String |
| type | String
|
| definitions | Definitions |
| properties | Properties |
| required | StringArray |