Skip to content

Setting displayOperationId to false does not work. #1530

Closed
@dennis-bullee-entrnce

Description

@dennis-bullee-entrnce

Describe the bug

  • Setting displayOperationId to false does not work.

To Reproduce
Using springdoc-openui 1.6.6

  1. Set displayOperationId to false using SwaggerUiConfigProperties
  2. SpringDocPropertiesUtils changes booleans into strings.
  3. swagger-config endpoint will return displayOperationId: "false"
  4. displayOperationId: "false" evaluates to true in swagger-ui
  5. Operation Id is displayed

Expected behavior
Operation Id is not displayed

Screenshots
Response:
image
UI:
image

Additional context
Seems to me SpringDocPropertiesUtils should put booleans in the properies map.
If swagger-ui should be able to deal with boolean values as string, I will have to submit an issue there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions