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
Describe the bug Using // @x-logo ... will result x-logo outside the info scope.
// @x-logo ...
x-logo
info
To Reproduce Steps to reproduce the behavior:
main.go
// @title Example API // @version 1.0 // @description API // @x-logo {"url": "https://example.com/img.png", "backgroundColor": "#000000", "altText": "example logo", "href": "https://example.com/img.png"}
swag init
docs/swagger.json
docs/swagger.yaml
swagger.json
.................................. "x-logo": { "altText": "example logo", "backgroundColor": "#000000", "href": "https://example.com/img.png", "url": "https://example.com/img.png" } } <=========================== EOF
swagger.yaml
.................................. swagger: "2.0" x-logo: altText: example logo backgroundColor: '#000000' href: https://example.com/img.png url: https://example.com/img.png <=========================== EOF
Expected behavior
..................... info: contact: {} description: API license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html title: Example API version: "1.0" x-logo: altText: example logo backgroundColor: '#000000' href: https://example.com/img.png url: https://example.com/img.png .................
{ "swagger": "2.0", "info": { "description": "API", "title": "Example API", "x-logo": { "altText": "example logo", "backgroundColor": "#000000", "href": "https://example.com/img.png", "url": "https://example.com/img.png" }, "contact": {}, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, .................
Your swag version v1.6.7
Your go version go version go1.14.6 linux/amd64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
I already wrote a fix for that + some additional sugar :) Just needs to be merged :)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Using
// @x-logo ...
will resultx-logo
outside theinfo
scope.To Reproduce
Steps to reproduce the behavior:
main.go
swag init
docs/swagger.json
anddocs/swagger.yaml
swagger.json
swagger.yaml
Expected behavior
swagger.yaml
swagger.json
Your swag version
v1.6.7
Your go version
go version go1.14.6 linux/amd64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: