Skip to content

Commit

Permalink
html2: fix rendering of primitive props
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Dec 2, 2024
1 parent 057428d commit ffce5a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit ffce5a1

Please # to comment.