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
If req/resp struct using generic, like type req[T any] struct {}, generated openapi output will contains schema with name like Req[Blabla], and Swagger Editor complains it as semantic error
To Reproduce
Take the example code in README, I modify req/resp to use generic:
Then paste it to https://editor.swagger.io/, it will complain Component names can only contain the characters A-Z a-z 0-9 - . _, although req/resp displayed correctly
Expected behavior
Output schema name should not contain bracket
Additional context
Nothing else and thanks for your library ❤️
The text was updated successfully, but these errors were encountered:
Describe the bug
If req/resp struct using generic, like
type req[T any] struct {}
, generated openapi output will contains schema with name likeReq[Blabla]
, and Swagger Editor complains it as semantic errorTo Reproduce
Take the example code in README, I modify req/resp to use generic:
which will output:
Then paste it to https://editor.swagger.io/, it will complain
Component names can only contain the characters A-Z a-z 0-9 - . _
, although req/resp displayed correctlyExpected behavior
Output schema name should not contain bracket
Additional context
Nothing else and thanks for your library ❤️
The text was updated successfully, but these errors were encountered: