Forum Discussion

beantownace's avatar
beantownace
New Contributor
4 years ago

How to hide schema property from Swagger UI - OpenAPI3

Hello all,

 

I have a schema where I need a property that will generate on the model but I don't want to actually show it in the swagger UI.  Is there a way to hide the property on the schema?  i.e.

 

schema:

   customer:

      type: object

      properties:

            customerId: (want to hide this)

               type: string

 

No RepliesBe the first to reply