mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 09:03:44 +03:00
99 lines
1.7 KiB
JSON
99 lines
1.7 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"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"test5": {
|
|
"get": {
|
|
"summary": "test get",
|
|
"parameters": [
|
|
{
|
|
"$ref": "#/definitions/Simple",
|
|
"title": "test",
|
|
"description": "test"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|