We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When specifying a top level parameter and then referencing it in a path, swagger-ui does not expand the reference at all:
parameter
path
This can be tested with this minimal schema:
{ "swagger": "2.0", "host": "qa.test.com", "basePath": "/api/v2", "info": { "version": "0.2.0", "title": "Parameter $ref test", "description": "Example" }, "parameters": { "start": { "name": "start", "in": "query", "description": "The starting index to offset results from", "type": "integer", "default": 0, "minimum": 0 } }, "paths": { "/item": { "get": { "description": "Return some items", "parameters": [ { "name": "type", "in": "query", "description": "A type of item", "required": true, "type": "string", "format": "string" }, { "$ref": "#/parameters/start" } ], "responses": { "200": { "description": "Successful response" } } } } } }
The very same schema loaded into the swagger editor works as exepcted:
The text was updated successfully, but these errors were encountered:
Thanks. This is a duplicate of #621 and is currently slated for the M2 release.
Sorry, something went wrong.
Ah, sorry for not looking harder. Thanks for the quick response.
No worries. It's better to have duplicates than having no reports.
No branches or pull requests
When specifying a top level
parameter
and then referencing it in apath
, swagger-ui does not expand the reference at all:This can be tested with this minimal schema:
The very same schema loaded into the swagger editor works as exepcted:
The text was updated successfully, but these errors were encountered: