Skip to content

Overwriting description of referenced objects not possible (openAPI 3.1) #720

@elnipa

Description

@elnipa

According to openAPI 3.1 specification it is possible now to overwrite descriptions and summary where objects are referenced:
When using the Reference Object, summary and description fields can now be overridden.
https://github.com/OAI/OpenAPI-Specification/releases

e.g.

paths:
  /items:
    post:
      parameters:
        - $ref: '#/components/parameters/item'
          description: The specific item in question

RapiDoc seems to render the description from the referenced object only.
We use this quite heavily to re-use models and change some description details in the specific context.

Would love to see the that part of openAPI 3.1 spec implemented in the future. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions