Skip to content

Nested schemas do not show description in swagger-ui #5139

Open
@Kadams64

Description

@Kadams64
  • OS: macOS 10.14
  • Browser: Safari
  • Version: 12.0
  • Method of installation: Github download
  • Swagger-UI version: 3.20.5
  • Swagger/OpenAPI version: Swagger 2.0

The following snippet of Swagger JSON from my API includes a description for a nested property:

"reasonForDeletion":{"description":"The reason for deletion. VocabularyDomain=SubjectMgmtAllergyDeletionReason.","$ref":"#/definitions/CodedConceptReference"}}

The Swagger-ui output, however, does not display the nested entity description i.e.: it looks like this:
image

Steps to reproduce the behavior:

  1. Use Swagger-UI to explore an API with a nested property having a description
  2. Expand the nested property
  3. Observe a lack of the 'description' text

Expected behaviour:
Descriptions of nested properties should appear immediately adjacent to the described property; the nested entity descriptions should then follow

Additional context or thoughts

  • this problem has existed in every version of Swagger-UI going back well over a year. It has been reported several times, and described as 'fixed' several times as well

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions