Discussions

Ask a Question
Back to All

allOf inheritance

Hi,

it seems like when returning an array, and the associated schema is inherited with allOf the object is not properly displayed when you click on the "Response" to see how it looks.

Strangely, it works with non array.

example below:
responses:
200:
description: OK - List of advertiser objects
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/advertiser'

advertiser:
  allOf:     # Combines the basicAdvertiser and the advertiser model
    - $ref: '#/components/schemas/basicAdvertiser'
    - type: object