You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the scope annotation if the file is formatted the swag init will add the \t chars to the yaml file
To Reproduce
add this to main.go
// @securitydefinitions.oauth2.accessCode example
// @tokenUrl http://example.com/oauth2/access-token
// @authorizationurl http://example.com/oauth2/authorize
// @scope.write Grants write access
// @scope.admin Grants read and write access to administrative information
Describe the bug
When using the scope annotation if the file is formatted the swag init will add the \t chars to the yaml file
To Reproduce
add this to main.go
// @securitydefinitions.oauth2.accessCode example
// @tokenUrl http://example.com/oauth2/access-token
// @authorizationurl http://example.com/oauth2/authorize
// @scope.write Grants write access
// @scope.admin Grants read and write access to administrative information
Expected behavior
securityDefinitions:
example:
authorizationUrl: http://example.com/oauth2/authorize
flow: accessCode
scopes:
admin: "Grants read and write access to administrative information"
write: "Grants write access"
tokenUrl: http://example.com/oauth2/access-token
type: oauth2
Actual behavior
securityDefinitions:
example:
authorizationUrl: http://example.com/oauth2/authorize
flow: accessCode
scopes:
admin: "\t\t\t\t\t\t\tGrants read and write access to administrative information"
write: "\t\t\t\t\t\t\tGrants write access"
tokenUrl: http://example.com/oauth2/access-token
type: oauth2
Your swag version
e.g. 1.16.2
Your go version
e.g. 1.21.5
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: