From d1022fa3a0017922287bbcc57317471c3d1a86fe Mon Sep 17 00:00:00 2001 From: John Clark Date: Mon, 14 Sep 2015 15:13:00 -0600 Subject: [PATCH] Allow schema example to be false --- lib/schema-markup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schema-markup.js b/lib/schema-markup.js index edd09d3fe..e3340fff1 100644 --- a/lib/schema-markup.js +++ b/lib/schema-markup.js @@ -114,7 +114,7 @@ function schemaToJSON(schema, models, modelsToIgnore, modelPropertyMacro) { var model; var output; - if (schema.example) { + if (!_.isUndefined(schema.example)) { output = schema.example; } else if (_.isUndefined(schema.items) && _.isArray(schema.enum)) { output = schema.enum[0];