mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
Use schema.example if defined, even if value is falsy (#2370)
This commit is contained in:
@@ -19,7 +19,7 @@ export function generateSchemaExample(
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (schema.example) {
|
||||
if (typeof schema.example !== 'undefined') {
|
||||
return schema.example;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user