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
go-swagger will ignore swagger:route section when there is Chinese character in it.
Swagger specification
code to generate swagger.json
package swagger
// swagger:route GET /online get room list 中
//
// Lists pets filtered by some parameters.
//
// This will show all available pets by default.
// You can get the pets that are out of stock
//
// Responses:
// default: test
//
func getOnline() {}
I am sorry that I am wrong. The problem remains and can be reproduction with which I mention, but the real problem is "operationId" can't be Chinese characters.
It's a problem but I think it is not important, so I choose to close this issue.
Problem statement
go-swagger will ignore swagger:route section when there is Chinese character in it.
Swagger specification
code to generate swagger.json
result
but if remove the '中' character in the go code, the swagger.json will have the router.
Steps to reproduce
swagger generate spec -o ./swagger.json -m
generate the swagger.json, ignore the model definition here.
Environment
swagger version: 0.10.0
go version: go.1.8.3 darwin/amd64
OS: macOS 10.12.5
The text was updated successfully, but these errors were encountered: