Skip to content

Commit dd5e903

Browse files
committed
Replace condition schema.default
1 parent 47573a6 commit dd5e903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-openapi/src/OpenAPISchema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function OpenAPISchemaPresentation(props: { property: OpenAPISchemaPropertyEntry
334334
{description ? (
335335
<Markdown source={description} className="openapi-schema-description" />
336336
) : null}
337-
{typeof schema.default !== 'undefined' ? (
337+
{schema.default !== undefined ? (
338338
<span className="openapi-schema-default">
339339
Default:{' '}
340340
<code>

0 commit comments

Comments
 (0)