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": {
|
2016-06-22 19:13:57 +03:00
|
|
|
"$ref": "#/definitions/Simple"
|
2015-12-12 23:13:26 +03:00
|
|
|
}
|
2016-01-16 01:44:10 +03:00
|
|
|
},
|
|
|
|
"Circular": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2016-06-22 19:13:57 +03:00
|
|
|
"$ref": "#/definitions/Circular"
|
2016-01-16 01:44:10 +03:00
|
|
|
}
|
2016-06-25 13:58:03 +03:00
|
|
|
},
|
|
|
|
"CircularTransitive": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"$ref": "#/definitions/CircularTransitive2"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"CircularTransitive2": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"additionalProperties": {
|
|
|
|
"$ref": "#/definitions/CircularTransitive"
|
|
|
|
}
|
|
|
|
}
|
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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-12-13 01:04:27 +03:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2016-06-25 13:58:03 +03:00
|
|
|
},
|
|
|
|
"test6": {
|
|
|
|
"get": {
|
|
|
|
"summary": "test get",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/CircularTransitive",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-12-12 23:13:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|