From e6e0828160aa81da44b4e281c787e4b084458714 Mon Sep 17 00:00:00 2001 From: frantuma Date: Mon, 2 Dec 2024 12:43:27 +0100 Subject: [PATCH] html2: fix rendering of primitive props --- .../resources/handlebars/htmlDocs2/js_jsonschemaview.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {