mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-16 18:00:33 +03:00
parent
533733bc7f
commit
fe3383d1a3
|
@ -161,9 +161,10 @@ export class SchemaModel {
|
|||
(variant, idx) =>
|
||||
new SchemaModel(
|
||||
parser,
|
||||
// merge base schema into each of oneOf's subschemas
|
||||
{
|
||||
// merge base schema into each of oneOf's subschemas
|
||||
...variant,
|
||||
// variant may already have allOf so merge it to not get overwritten
|
||||
...parser.mergeAllOf(variant, this.pointer + '/oneOf/' + idx),
|
||||
allOf: [{ ...this.schema, oneOf: undefined, anyOf: undefined }],
|
||||
} as OpenAPISchema,
|
||||
this.pointer + '/oneOf/' + idx,
|
||||
|
|
Loading…
Reference in New Issue
Block a user