mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-14 21:06:34 +03:00
87 lines
1.5 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|