Skip to content

Commit 2a3f63f

Browse files
authored
[html2] Support oneOf (#18642)
1 parent 3d96a40 commit 2a3f63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonschemaview.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var JSONSchemaView = (function () {
133133
// Determine if a schema is an array
134134
this.isArray = !this.isAny && this.schema && this.schema.type === 'array';
135135
136-
this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneof || this.schema.allOf);
136+
this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneOf || this.schema.allOf);
137137
138138
// Determine if a schema is a primitive
139139
this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;

0 commit comments

Comments
 (0)