Last active
November 23, 2015 20:38
-
-
Save DavidBiesack/9cda3bb134216b4b0530 to your computer and use it in GitHub Desktop.
Demonstration of Swagger UI issue 17771. View with http://petstore.swagger.io/?url=https://gist.githubusercontent.com/DavidBiesack/9cda3bb134216b4b0530/raw/ea26298368ea36681c9b2aa89da88f34b624def7/swagger-issue-issues-1771.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": | |
{ | |
"version": "1.0.0", | |
"title": "Ref Demo", | |
"description": "This demonstrates references to parameter that have references to definitions do not display properly in the swagger UI." | |
}, | |
"parameters": | |
{ | |
"ObjectParm": | |
{ | |
"name": "object information", | |
"in": "body", | |
"description": "The object's information", | |
"required": true, | |
"schema": { "$ref": "#/definitions/Object" } | |
} | |
}, | |
"paths": | |
{ | |
"/parms": | |
{ | |
"post": | |
{ | |
"summary": "Create the object", | |
"description": "Create a new object", | |
"parameters": | |
[ | |
{ "$ref": "#/parameters/ObjectParm" } | |
], | |
"responses": | |
{ | |
"201": | |
{ | |
"description": "Created", | |
"schema": { "$ref": "#/definitions/Object" } | |
}, | |
"400": { "description": "Bad request"}, | |
"401": { "description": "Not authenticated" }, | |
"403": { "description": "Forbidden - the user does not have permission to complete this request" } | |
} | |
} | |
} | |
}, | |
"definitions": | |
{ | |
"Object": | |
{ | |
"properties": | |
{ | |
"name": | |
{ | |
"type": "string", | |
"description": "localizable server name" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment