redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Hide code samples panel

Open romain-tadiello opened this issue 2 years ago • 1 comments

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

romain-tadiello avatar Dec 05 '23 13:12 romain-tadiello

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.

ZyzychO avatar Jan 30 '24 23:01 ZyzychO