genki
6 years agoOccasional Visitor
How to hide Model Information
I described Schema information like below in my swagger.yaml.
I want to show the only B to Swagger UI. But, this will also show A. How to hide A from Swagger UI?
components: schemas: B: allOf: - type: object properties: bbb: type: string - $ref: '#/components/schemas/A' A: - type: object properties: aaa: type: string
Dan T (Staff) [10/26/2023 - 17:23 ET]
Hi Brad, I don't think Stoplight supports this use case currently as it is still not really supported within OAS 3.1
There is an issue open for in the OAI Github that might have some suggestions or ideas for you: https://github.com/OAI/OpenAPI-Specification/issues/256