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

99 lines
1.7 KiB
JSON
Raw Normal View History

2015-12-12 23:13:26 +03:00
{
"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"
}
}
2016-01-16 01:44:10 +03:00
},
"Circular": {
"type": "array",
"items": {
"schema": {
"$ref": "#/definitions/Circular"
}
}
2015-12-12 23:13:26 +03:00
}
},
"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"
}
]
}
2016-01-16 01:44:10 +03:00
},
"test4": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/Circular"
}
]
}
2016-01-17 00:35:57 +03:00
},
"test5": {
"get": {
"summary": "test get",
"parameters": [
{
"$ref": "#/definitions/Simple",
"title": "test",
"description": "test"
}
]
}
2015-12-12 23:13:26 +03:00
}
}
}