Forum Discussion

tyteen4a03's avatar
tyteen4a03
New Member
7 years ago

SwaggerHub editor does not support array allOfs in OpenAPI 3

This example gives me a "Cannot read property '0' of undefined" error in SwaggerHub, however the same schema is valid on Swagger Editor:

 

 

    Response:
      type: object
      allOf:
        - type: object
          properties:
            values:
              type: array
              items:
                allOf:
                  - $ref: '#/components/schemas/Id'
                  - $ref: '#/components/schemas/Object'
        - $ref: '#/components/schemas/Metadata'