Skip to content
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

Got error "Could not render this component, see the console" when using Enums(A, B, C) #46

Open
dunghydrax opened this issue Jun 18, 2021 · 1 comment

Comments

@dunghydrax
Copy link

Describe the bug

image

image

Reproduce

Using Enums to declare a dropdown selection

// @Param state query string false "Order state" Enums(A, B, C)

In swagger, It looks like

image

  • Select "A"
  • Select "--" -> an error Could not render this component, see the console with emoji appear
    image

Expected behavior

  • No error when picking "--"

swag version: v1.6.3
I've tested with v1.7.0 but It's not work as well

@ubogdan
Copy link
Contributor

ubogdan commented Apr 16, 2022

This issue is related to swag, please open it here https://github.com/swaggo/swag/issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants