Skip to content

Commit 1012931

Browse files
committed
Merge pull request #572 from jonnymbgood/patch-1
Allow schema example to be false
2 parents e6b8b5c + d1022fa commit 1012931

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)