Skip to content

description of parent object not taken into account when using allOf #2781

@ggyurchev

Description

@ggyurchev

Describe the bug
In this article the following example is given:

type: object
properties:
  transactionId:
    description: ID of the transaction.
    allOf:
      - $ref: '#/components/schemas/ResourceId'

This should override the description from ResourceId. However, when I try this in a standalone schema file, the generated documentation still contains the description of the child object:

type: object
description: Parent description
allOf:
      - $ref: '#/components/schemas/ResourceId'
properties:
  additionalProperty:
    description: ID of the transaction.

Expected behavior
"Parent description" should appear as description of the parent object

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions