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
but we have fully information for this endpoint, e.g. http method, serializer type, url path, request params, response params, and we have full info for request struct and response struct, like which field is used in path/query/body. So we can add a flag for hz to control generating swagger style comment for each method.
Is your feature request related to a problem? Please describe.
when using idl for generate code, we currently add some simple comments for each handler
hertz/cmd/hz/generator/handler.go
Lines 247 to 261 in 0d8b98b
but we have fully information for this endpoint, e.g. http method, serializer type, url path, request params, response params, and we have full info for request struct and response struct, like which field is used in path/query/body. So we can add a flag for hz to control generating swagger style comment for each method.
previous relates issues #28, #538, #558, #692
Describe the solution you'd like
In HttpMethod.InitComment, generate swagger style comment for using https://github.com/hertz-contrib/swagger
Describe alternatives you've considered
maybe we could provider a template like layout and package for the swagger comments.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: