Skip to content

Commit ffce5a1

Browse files
committed
html2: fix rendering of primitive props
1 parent 057428d commit ffce5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var JSONSchemaView = (function () {
141141
this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;
142142
143143
//
144-
this.showToggle = this.schema.description || this.schema.title || this.isPrimitive && (this.schema.minimum || this.schema.maximum || this.schema.exclusiveMinimum || this.schema.exclusiveMaximum);
144+
this.showToggle = this.schema.description || this.schema.title || this.isPrimitive && (this.schema.minimum || this.schema.maximum || this.schema.exclusiveMinimum || this.schema.exclusiveMaximum || this.schema.maxLength || this.schema.minLength || this.schema.pattern || this.schema.format);
145145
146146
// populate isRequired property down to properties
147147
if (this.schema && Array.isArray(this.schema.required)) {

0 commit comments

Comments
 (0)