{ "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": { "$ref": "#/definitions/Simple" } }, "Circular": { "type": "array", "items": { "$ref": "#/definitions/Circular" } }, "CircularTransitive": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CircularTransitive2" } }, "CircularTransitive2": { "type": "array", "items": { "additionalProperties": { "$ref": "#/definitions/CircularTransitive" } } } }, "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" } ] } }, "test6": { "get": { "summary": "test get", "parameters": [ { "$ref": "#/definitions/CircularTransitive", "title": "test", "description": "test" } ] } } } }