elements
elements copied to clipboard
Under "Schemas" the `title` of a property is not displayed
Describe the bug
Under "Schemas" the title
of a property is not displayed anywhere.
To Reproduce
- 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
- View this OAS using Stoplight Elements
- 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)
:
Missing in Stoplight:
Environment (remove any that are not applicable):
- @stoplight/[email protected] Web Component
- Firefox