fiber-go-template icon indicating copy to clipboard operation
fiber-go-template copied to clipboard

Swagger docs broken

Open terodelarosa opened this issue 2 years ago • 2 comments
trafficstars

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:

  1. Go to /swagger/index.html#/User/post_v1_user_sign_up
  2. Click on 'Try it out'
  3. Fill values
  4. Click on 'execute'
  5. See error

Expected behavior:

Swagger should send a JSON encoded payload including all fields.

Screenshots: Captura de pantalla 2023-09-07 162011

Additional context:

terodelarosa avatar Sep 07 '23 13:09 terodelarosa

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!

welcome[bot] avatar Sep 07 '23 13:09 welcome[bot]

👋 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.

stale[bot] avatar Dec 15 '23 06:12 stale[bot]

⚡️ This issue has been automatically closed because it has not had recent activity.

stale[bot] avatar Mar 17 '24 16:03 stale[bot]