Skip to content

Commit fd83f5c

Browse files
micheletriacamrin9
authored andcommitted
fixed Query parameters default value is not rendered if the value is 0 or false. close #591
1 parent 7761138 commit fd83f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/schema-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getTypeInfo(schema) {
3232
readOrWriteOnly: (schema.readOnly ? '🆁' : schema.writeOnly ? '🆆' : ''),
3333
deprecated: schema.deprecated ? '❌' : '',
3434
examples: schema.examples || schema.example,
35-
default: schema.default || '',
35+
default: schema.default != null ? `${schema.default}` : '',
3636
description: schema.description || '',
3737
constrain: '',
3838
allowedValues: '',

0 commit comments

Comments
 (0)