Skip to content

Commit d1022fa

Browse files
committed
Allow schema example to be false
1 parent d1897d7 commit d1022fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schema-markup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function schemaToJSON(schema, models, modelsToIgnore, modelPropertyMacro) {
114114
var model;
115115
var output;
116116

117-
if (schema.example) {
117+
if (!_.isUndefined(schema.example)) {
118118
output = schema.example;
119119
} else if (_.isUndefined(schema.items) && _.isArray(schema.enum)) {
120120
output = schema.enum[0];

0 commit comments

Comments
 (0)