RapiDoc
RapiDoc copied to clipboard
Hard to read nested anyOf/oneOf blocks
With using schema-style="table" I have an excerpt from my openapi file:
components:
schemas:
ExampleSchemaA:
oneOf:
- $ref: '#/components/schemas/Blahblah'
- $ref: '#/components/schemas/Blahblah2'
ExampleSchemaB:
... (some normal definition not using oneOf) ....
requestBodies:
ExampleRequestBody:
required: true
content:
application/vnd.api+json:
schema:
type: object
required:
- data
properties:
data:
type: object
properties:
type:
type: string
attributes:
description: The attributes of the asset being registered
anyOf:
- $ref: '#/components/schemas/ExampleSchemaA'
- $ref: '#/components/schemas/ExampleSchemaB'
required:
- type
- attributes
This ends up rendering something like this:
If the default tree schema style is used, it renders as I would expect:
Thank you for taking the time to read! Let me know if you need some more information from my side