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
In the swagger:route declaration, unable to specify a tag which has a whitespace. Tried putting quotes(single and double) as well as back slash. But it doesn't work. Looks like the only special characters supported are "-" and "_". Is there a way to specify tags which spaces?
Steps to reproduce
Create a function which has a swagger:route declaration.
Example:
// SomeRoute swagger:route GET /some_path "Tag With Spaces" op-id
If I don't specify the double quotes, then three separate tags "Tag", "With", "Spaces" get generated. But if the quotes are specified, then the route will be missing in the generated spec.
Environment
swagger version: 2.0
go version:1.13.8
OS: MacOS
The text was updated successfully, but these errors were encountered:
I was able to get passed this issue in swagger:operation declaration by specifying the tags in Yaml. Here's an example:
// swagger:operation POST /api/notify sendNotification
// ---
// summary: Send notification to users.
// tags:
// - "Notification Delivery"
// description: Accepts a payload containing a list of users to pass the notification to. The notification is sent to each recipient in the list.
// parameters:
// - name: body
// in: body
// description: Payload containing a string value for the notification and the list of users which should receive the notification.
// required: true
// type: object
// schema:
// "$ref": "#/definitions/NotificationMessagePayload"
// responses:
// "200":
// "$ref": "#/definitions/NotificationMessageResponse"
In the swagger:route declaration, unable to specify a tag which has a whitespace. Tried putting quotes(single and double) as well as back slash. But it doesn't work. Looks like the only special characters supported are "-" and "_". Is there a way to specify tags which spaces?
Steps to reproduce
Create a function which has a swagger:route declaration.
Example:
// SomeRoute swagger:route GET /some_path "Tag With Spaces" op-id
If I don't specify the double quotes, then three separate tags "Tag", "With", "Spaces" get generated. But if the quotes are specified, then the route will be missing in the generated spec.
Environment
swagger version: 2.0
go version:1.13.8
OS: MacOS
The text was updated successfully, but these errors were encountered: