Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions demo/examples/petstore-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,14 @@ paths:
properties:
name:
description: Updated name of the pet
type: string
type:
- string
- "null"
status:
description: Updated status of the pet
type: string
type:
- string
- "null"
delete:
tags:
- pet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ export default function SchemaItem(props: Props) {
>
{name}
</strong>
<span className="openapi-schema__name"> {schemaName}</span>
<span className="openapi-schema__name">
{Array.isArray(schemaName) ? schemaName.join(" | ") : schemaName}
</span>
{(nullable || required || deprecated) && (
<span className="openapi-schema__divider"></span>
)}
Expand Down
Loading