-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use swaggertype tag to supported custom type #201
Comments
same issue on v1.4.0 |
Problem exists when serialized struct has field with Minimal code with reproduced error:
|
@psrebniak I had the same issue and was able to make it work using the "swaggertype" tag:
That should help you to compile it as a string. Take a look at https://github.com/swaggo/swag/#override-swagger-type-of-a-struct-field |
@rodrigodmd ping. Thanks for your comments. Now have to use
we will add this feat if we have free time, and swag team welcome PR to enhance all of it. |
swag init
Describe the bug
Sometimes
swag init
panics out of the blue, other times generates without error.To Reproduce
Expected behavior
Shouldn't panic but display an error
Your swag version
swag version v1.3.2
Additional context
Started doing this behavior after adding this line:
// @Success 201 {object} mdl.Account
The text was updated successfully, but these errors were encountered: