Forum Discussion

danieltprice's avatar
danieltprice
Occasional Visitor
3 years ago

Can you disable inclusion of -X in generated "Try it out" cURL commands when not required?

The Try it out feature appears to always include the -X option in generated cURL commands for methods that may not require it. Is there a way to exclude the -X for generated cURL commands?

  • Hi danieltprice ,

     

    I don't believe we have that config in SwaggerUI. Are you asking because it would look cleaner, or is there another reason? 

    PS: You're welcome to request the feature or create a pull request in the GitHub repo, https://github.com/swagger-api/swagger-ui/issues. It may not need a config, if the added feature is smart enough to know when it's needed or not.