redoc/tests/schemas/base-component-dereference.json
2016-01-16 00:44:10 +02:00

87 lines
1.5 KiB
JSON

{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Test schema"
},
"host": "petstore.swagger.io",
"basePath": "/v2/",
"definitions": {
"Simple": {
"type": "object",
"properties": {
"id": {
"type": "integer"
}
}
},
"Nested": {
"type": "object",
"title": "NesteTitle",
"properties": {
"subschema": {
"$ref": "#/definitions/Simple"
}
}
},
"ArrayOfSimple": {
"type": "array",
"items": {
"schema": {
"$ref": "#/definitions/Simple"
}
}
},
"Circular": {
"type": "array",
"items": {
"schema": {
"$ref": "#/definitions/Circular"
}
}
}
},
"paths": {
"test1": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/Simple"
}
]
}
},
"test2": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/Nested"
}
]
}
},
"test3": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/ArrayOfSimple"
}
]
}
},
"test4": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/Circular"
}
]
}
}
}
}