fiber-go-template
fiber-go-template copied to clipboard
Swagger docs broken
Required check list:
- [x] I'm gonna mark the checkboxes like this.
- [x] I didn't find in the repository's issues section similar bug.
- [x] I understand, this is Open Source and not-for-profit product.
- [x] This is not about third-party project, framework, package or technology.
My environment:
- OS (
uname -a): Windows 11 Home 22H2 22621.2134 - Golang (
go version): go version go1.21.0 windows/amd64
Describe the bug:
Automatically generated Swagger 2 docs don't work. /v1/user/sign/up endpoint doesn't send JSON encoded payload but rather the raw value of user_role.
Steps to reproduce the behavior:
- Go to /swagger/index.html#/User/post_v1_user_sign_up
- Click on 'Try it out'
- Fill values
- Click on 'execute'
- See error
Expected behavior:
Swagger should send a JSON encoded payload including all fields.
Screenshots:
Additional context:
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!
👋 Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
⚡️ This issue has been automatically closed because it has not had recent activity.