Skip to content

Commit

Permalink
fixed missing body issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Dec 26, 2020
1 parent 42f6021 commit 8d63077
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 8d63077

Please sign in to comment.