Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.67k stars 2.31k forks source link

Hide code samples panel #2461

Open romain-tadiello opened 11 months ago

romain-tadiello commented 11 months ago

Describe the problem to be solved We would like to be able to disable/hide the code samples panel for specific operation. For now we set x-codeSamples to empty but it doesn't give the ideal UI

Describe the solution you'd like It could be something similar to x-hideTryItPanel flag.

Describe alternatives you've considered Putting x-codeSamples with source: "" which is not ideal but we can live with it

ZyzychO commented 10 months ago

Hello @romain-tadiello

Did you have a chance to check our feature: hideSingleRequestSampleTab, which hides the request sample tab for requests with only one sample?

I have attached the article for reference: https://redocly.com/docs/redoc/config/#hidesinglerequestsampletab

Let us know if that works for you.