File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,14 @@ paths:
242242 properties :
243243 name :
244244 description : Updated name of the pet
245- type : string
245+ type :
246+ - string
247+ - " null"
246248 status :
247249 description : Updated status of the pet
248- type : string
250+ type :
251+ - string
252+ - " null"
249253 delete :
250254 tags :
251255 - pet
Original file line number Diff line number Diff line change @@ -195,7 +195,9 @@ export default function SchemaItem(props: Props) {
195195 >
196196 { name }
197197 </ strong >
198- < span className = "openapi-schema__name" > { schemaName } </ span >
198+ < span className = "openapi-schema__name" >
199+ { Array . isArray ( schemaName ) ? schemaName . join ( " | " ) : schemaName }
200+ </ span >
199201 { ( nullable || required || deprecated ) && (
200202 < span className = "openapi-schema__divider" > </ span >
201203 ) }
You can’t perform that action at this time.
0 commit comments