Skip to content

Instantly share code, notes, and snippets.

@carlevans719
Created January 14, 2019 21:48
Show Gist options
  • Select an option

  • Save carlevans719/9e4f3f1c1282c98f2fee06681f4f9a03 to your computer and use it in GitHub Desktop.

Select an option

Save carlevans719/9e4f3f1c1282c98f2fee06681f4f9a03 to your computer and use it in GitHub Desktop.
Example of spec which would reproduce error lin apint/openapi-designer issue #354
{
"paths": {
"/{test}": {
"get": {
"operationId": "getTest",
"responses": {}
},
"x-oad-type": "operation"
},
"/second/{test}": {
"get": {
"operationId": "getSecondTest",
"responses": {
"200": {
"description": "Sample",
"x-oad-type": "response"
}
},
"parameters": [
{
"$ref": "#/parameters/test",
"x-oad-type": "reference"
}
]
},
"x-oad-type": "operation"
}
},
"parameters": {
"test": {
"name": "test",
"in": "path",
"required": true,
"type": "string",
"x-oad-type": "parameter"
}
},
"swagger": "2.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment