-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Shcema:
type: array
items:
$ref: '#/components/schemas/Book'Schema Components:
BookBase:
type: object
required:
- id
- title
- author
properties:
id:
type: integer
format: int64
description: Unique identifier for the book
title:
type: string
description: The title of the book
author:
type: string
description: The author of the book
AdditionalBookInfo:
type: object
properties:
publishedDate:
type: string
format: date
description: The date the book was published
genre:
type: string
description: The genre of the book
tags:
type: array
items:
type: string
description: Tags associated with the book
Book:
allOf:
- $ref: '#/components/schemas/BookBase'
- $ref: '#/components/schemas/AdditionalBookInfo'
properties:
category:
type: string
description: The category of the bookAs shown above, when an object with allOf and properties is used as an item in an array, the properties defined in allOf are not displayed.
Expected behavior
Everything defined with allOf and properties is displayed.
Current behavior

Only the contents defined in properties are displayed, while the ones specified in allOf are not shown.
Possible solution
I'm not sure of the solution.
Steps to reproduce
- In the OpenAPI Spec, define an object that has both
allOfandproperties, and use it as an item in an array. - Generate the API reference.
- Open the relevant endpoint in the browser.
Screenshots
Context
Your Environment
- Version used: v4.4.0
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
- Operating System and version (desktop or mobile): both
- Link to your project:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working