File: //opt/go/pkg/mod/github.com/go-openapi/
[email protected]/fixtures/oaigen/test3-ter-swagger-flat.json
{
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"schemes": [
"http"
],
"swagger": "2.0",
"info": {
"description": "recursively following JSON references",
"title": "test 1",
"contact": {
"name": "Fred"
},
"version": "0.1.1"
},
"paths": {
"/getAll": {
"get": {
"operationId": "getAll",
"parameters": [
{
"description": "max number of results",
"name": "a",
"in": "body",
"schema": {
"$ref": "#/definitions/a"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/b1"
}
},
"201": {
"description": "Success",
"schema": {
"$ref": "#/definitions/b2"
}
},
"203": {
"description": "Success",
"schema": {
"$ref": "#/definitions/b3"
}
}
}
}
}
},
"definitions": {
"a": {
"type": "string"
},
"b1": {
"$ref": "#/definitions/b1OAIGen"
},
"b1OAIGen": {
"type": "array",
"items": {
"type": "string"
}
},
"b2": {
"$ref": "#/definitions/b2OAIGen"
},
"b2OAIGen": {
"type": "object",
"properties": {
"x2": {
"type": "string"
}
}
},
"b3": {
"$ref": "#/definitions/b3OAIGen"
},
"b3OAIGen": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}