Skip to content

Commit

Permalink
Add support for array of types
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcL01 committed Nov 7, 2024
1 parent 9163472 commit 64dd946
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 64dd946

Please sign in to comment.