From 8d63077a7b14958d4338b2e8ffc391333024f2ab Mon Sep 17 00:00:00 2001 From: Hugo Mercado Date: Sat, 26 Dec 2020 02:43:33 -0500 Subject: [PATCH] fixed missing body issue --- .../resources/handlebars/htmlDocs2/js_jsonschemaview.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache b/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache index 4cbe651332..fbd2164c89 100644 --- a/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache +++ b/src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache @@ -117,7 +117,7 @@ var JSONSchemaView = (function () { _classCallCheck(this, JSONSchemaView); - this.schema = schema; //console.log(schema); + this.schema = schema; this.open = open; this.options = options; this.isCollapsed = open <= 0; @@ -130,7 +130,7 @@ var JSONSchemaView = (function () { // Determine if a schema is an array this.isArray = !this.isAny && this.schema && this.schema.type === 'array'; - this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneof || this.schema.allOf); + this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.allOf); // Determine if a schema is a primitive this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;