diff --git a/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache b/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache index f263d005c2..c712924ceb 100644 --- a/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache +++ b/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache @@ -141,7 +141,7 @@ var JSONSchemaView = (function () { this.isPrimitive = !this.isAny && !this.isArray && !this.isObject; // - this.showToggle = this.schema.description || this.schema.title || this.isPrimitive && (this.schema.minimum || this.schema.maximum || this.schema.exclusiveMinimum || this.schema.exclusiveMaximum); + 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); // populate isRequired property down to properties if (this.schema && Array.isArray(this.schema.required)) {