We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 533733b commit fe3383dCopy full SHA for fe3383d
src/services/models/Schema.ts
@@ -161,9 +161,10 @@ export class SchemaModel {
161
(variant, idx) =>
162
new SchemaModel(
163
parser,
164
+ // merge base schema into each of oneOf's subschemas
165
{
- // merge base schema into each of oneOf's subschemas
166
- ...variant,
+ // variant may already have allOf so merge it to not get overwritten
167
+ ...parser.mergeAllOf(variant, this.pointer + '/oneOf/' + idx),
168
allOf: [{ ...this.schema, oneOf: undefined, anyOf: undefined }],
169
} as OpenAPISchema,
170
this.pointer + '/oneOf/' + idx,
0 commit comments