Skip to content

Commit

Permalink
[html2] Support oneOf (#18642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniokrait committed May 11, 2024
1 parent 3d96a40 commit 2a3f63f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,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.anyOf || this.schema.oneOf || this.schema.allOf);
// Determine if a schema is a primitive
this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;
Expand Down

0 comments on commit 2a3f63f

Please sign in to comment.