Skip to content

Commit

Permalink
[html2] Support oneOf (OpenAPITools#18642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniokrait authored and Renato Mameli committed May 17, 2024
1 parent 614b54d commit d6d8187
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 d6d8187

Please sign in to comment.