http-swagger icon indicating copy to clipboard operation
http-swagger copied to clipboard

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

Open dunghydrax opened this issue 4 years ago • 1 comments

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

dunghydrax avatar Jun 18 '21 03:06 dunghydrax

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

ubogdan avatar Apr 16 '22 06:04 ubogdan