redoc/tests/schemas/base-component-joinallof.json

120 lines
2.1 KiB
JSON
Raw Permalink Normal View History

2015-12-14 11:18:46 +03:00
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Test schema"
},
"host": "petstore.swagger.io",
"basePath": "/v2/",
"definitions": {
"Simple": {
2016-03-15 17:09:16 +03:00
"description": "simple",
2015-12-14 11:18:46 +03:00
"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"
}
}
}
]
},
2016-03-15 17:09:16 +03:00
"AllOfWithOther": {
"description": "Test",
"readOnly": true,
"allOf": [
{
"$ref": "#/definitions/Simple"
}
]
},
2015-12-14 11:18:46 +03:00
"BadAllOf1": {
"allOf": [
{
"$ref": "#/definitions/Simple"
},
{
"type": "string",
}
]
},
2016-03-15 17:09:16 +03:00
"PropertiesOnAllOfLevel": {
"properties": {
"prop": {
"type": "string"
}
},
2015-12-14 11:18:46 +03:00
"allOf": [
{
"$ref": "#/definitions/Simple"
},
{
"type": "object",
"required": ["prop3"],
"properties": {
"prop3": {
"type": "string"
}
}
}
]
2016-03-15 17:09:42 +03:00
},
"NestedAllOf": {
"allOf": [
{
"$ref": "#/definitions/SimpleAllOf"
},
{
"type": "object",
"properties": {
"prop4": {
"type": "string"
}
}
}
]
2015-12-14 11:18:46 +03:00
}
},
"paths": {
}
}