redoc/tests/schemas/base-component-joinallof.json
2016-03-15 16:09:42 +02:00

120 lines
2.1 KiB
JSON

{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Test schema"
},
"host": "petstore.swagger.io",
"basePath": "/v2/",
"definitions": {
"Simple": {
"description": "simple",
"type": "object",
"required": ["id"],
"properties": {
"id": {
"type": "integer"
}
}
},
"SimpleAllOf": {
"allOf": [
{
"type": "object",
"required": ["prop1"],
"properties": {
"prop1": {
"type": "string"
},
"prop2": {
"type": "string"
}
}
},
{
"type": "object",
"required": ["prop3"],
"properties": {
"prop3": {
"type": "string"
}
}
}
]
},
"AllOfWithRef": {
"allOf": [
{
"$ref": "#/definitions/Simple"
},
{
"type": "object",
"required": ["prop3"],
"properties": {
"prop3": {
"type": "string"
}
}
}
]
},
"AllOfWithOther": {
"description": "Test",
"readOnly": true,
"allOf": [
{
"$ref": "#/definitions/Simple"
}
]
},
"BadAllOf1": {
"allOf": [
{
"$ref": "#/definitions/Simple"
},
{
"type": "string",
}
]
},
"PropertiesOnAllOfLevel": {
"properties": {
"prop": {
"type": "string"
}
},
"allOf": [
{
"$ref": "#/definitions/Simple"
},
{
"type": "object",
"required": ["prop3"],
"properties": {
"prop3": {
"type": "string"
}
}
}
]
},
"NestedAllOf": {
"allOf": [
{
"$ref": "#/definitions/SimpleAllOf"
},
{
"type": "object",
"properties": {
"prop4": {
"type": "string"
}
}
}
]
}
},
"paths": {
}
}