redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Choose what to display in a Tag

Open Druwww opened this issue 7 years ago • 1 comments

Hi ! First, thanks for reDoc it works very well !

I looked if this option exist or if this issue was already there but I didn't find anything... I would like to hide in my documentation some stuff in a Tag.

For example, in my file .yml :

/travel/plan/cancel :
   post : 
      tags : 
          -....
      summary :  Subscribe to a flight delay insurance policy
      ...
   options:
      consumes:
          -.....
       ....

In my documentation I have in fact the POST show but also the OPTS display image

So is it possible to choose to not display some content in a Tag ? is there a option ?

To help, I use redeco-cli : redoc-cli bundle path/product.yml --options.hideDownloadButton --options.expandResponses="all"

Sorry if it's already open or answer in the doc, I start to develop very recently ^^' Thanks again for this project and your time !

Druwww avatar Jan 18 '19 14:01 Druwww

You could try using the guide for hiding internal fields and adapt it to exclude the options endpoints.

lornajane avatar Jul 26 '23 12:07 lornajane