question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot disable Try it out button

See original GitHub issue

Describe the bug As the Swagger UI configuration, to disable Try it out button, we have to set supportedSubmitMethods as an empty array. Because of L199, I can’t set an empty array to the property.

To Reproduce

  • What version of spring-boot you are using? 2.3.3
  • What modules and versions of springdoc-openapi are you using? Core, UI and Security with version 1.4.5

Minimal configuration to test:

springdoc:
  api-docs:
    enabled: true
  swagger-ui:
    enabled: true
    supported-submit-methods: []

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bnasslahsencommented, Aug 31, 2020

@mecseid,

Great descrition and analysis. It’s now fixed on master.

0reactions
bnasslahsencommented, May 27, 2022

@adarshv1997,

We use GitHub issues to track bugs and enhancements. If you have a general usage question please ask on Stack Overflow. The springdoc-openapi team and the broader community monitor the springdoc tag.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger UI disable Try It Out button - Stack Overflow
I would like to disable Try it Out button in the API documentation. I have tried "tryItOut": false in the parameter and the...
Read more >
Can "try it out" be disabled/hidden from online editor
Solved: Was curious to know if there is a way to totally hide "Try it now" feature from the documentation?
Read more >
Rad button not disabled in UI for .NET MAUI | Telerik Forums
Hi, Rad button not disabled in this scenario, <telerik:RadButton AutomationId="button" Text="Search" HorizontalOptions="CenterAndExpand" VerticalOptions=".
Read more >
CORS - Swagger Documentation
CORS. CORS is a technique to prevent websites from doing bad things with your personal data. Most browsers + JavaScript toolkits not only...
Read more >
How to disable or enable buttons using Javascript and jQuery
Introduction to disabling/enabling buttons ... Often while filling out web forms have you noticed how the submit button just won't work unless we ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found