Skip to content

Setting displayOperationId to false does not work. #1530

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

Closed
dennis-bullee-entrnce opened this issue Mar 2, 2022 · 0 comments
Closed

Setting displayOperationId to false does not work. #1530

dennis-bullee-entrnce opened this issue Mar 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dennis-bullee-entrnce
Copy link

dennis-bullee-entrnce commented Mar 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants