Commit 6e55849 1 parent 875f84c commit 6e55849 Copy full SHA for 6e55849
File tree 2 files changed +9
-3
lines changed
packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,14 @@ paths:
242
242
properties :
243
243
name :
244
244
description : Updated name of the pet
245
- type : string
245
+ type :
246
+ - string
247
+ - " null"
246
248
status :
247
249
description : Updated status of the pet
248
- type : string
250
+ type :
251
+ - string
252
+ - " null"
249
253
delete :
250
254
tags :
251
255
- pet
Original file line number Diff line number Diff line change @@ -195,7 +195,9 @@ export default function SchemaItem(props: Props) {
195
195
>
196
196
{ name }
197
197
</ strong >
198
- < span className = "openapi-schema__name" > { schemaName } </ span >
198
+ < span className = "openapi-schema__name" >
199
+ { Array . isArray ( schemaName ) ? schemaName . join ( " | " ) : schemaName }
200
+ </ span >
199
201
{ ( nullable || required || deprecated ) && (
200
202
< span className = "openapi-schema__divider" > </ span >
201
203
) }
You can’t perform that action at this time.
0 commit comments