Skip to content

Commit f5d3a31

Browse files
committed
fix from swagger-api/swagger-ui#939 merged to proper repo
1 parent b82fe4f commit f5d3a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/swagger-a.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ var Property = function(name, obj, required) {
10071007
this.optional = true;
10081008
this.optional = !required;
10091009
this.default = obj.default || null;
1010-
this.example = obj.example || null;
1010+
this.example = obj.example !== undefined ? obj.example : null;
10111011
this.collectionFormat = obj.collectionFormat || null;
10121012
this.maximum = obj.maximum || null;
10131013
this.exclusiveMaximum = obj.exclusiveMaximum || null;

0 commit comments

Comments
 (0)