RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Hard to read nested anyOf/oneOf blocks

Open grochlitz-evertz opened this issue 6 months ago • 0 comments

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:

Image

If the default tree schema style is used, it renders as I would expect:

Image

Thank you for taking the time to read! Let me know if you need some more information from my side

grochlitz-evertz avatar Jul 03 '25 20:07 grochlitz-evertz