elements icon indicating copy to clipboard operation
elements copied to clipboard

Under "Schemas" the `title` of a property is not displayed

Open sbiastoch opened this issue 2 years ago • 0 comments

Describe the bug

Under "Schemas" the title of a property is not displayed anywhere.

To Reproduce

  1. Given this OpenAPI document
openapi: 3.0.2
info:
  title: Testcase
  version: "1.0.0"
paths:
  /test:
    get:
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MySchema'
components:
  schemas:
    MySchema:
      title: My Schema
      type: object
      properties:
        my_property:
          title: Nice Title
          type: string
          description: A long description
  1. View this OAS using Stoplight Elements
  2. Navigate to MySchema and look at my_property

Expected behavior

It should show somewhere the "Nice Title" and not only the technical name "my_property"

Screenshots You see here a comparision between the same (different from above) OAS being rendered by ReDoc and Stoplight.

In ReDoc you see the nice name in brackets (Duns Primary Name): image

Missing in Stoplight: image

Environment (remove any that are not applicable):

sbiastoch avatar Mar 10 '22 11:03 sbiastoch