File tree 1 file changed +2
-6
lines changed
packages/docusaurus-plugin-openapi-docs/src/markdown
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function mergeAllOf(allOf: SchemaObject) {
31
31
console . warn ( msg ) ;
32
32
} ;
33
33
34
- const mergedSchemas = merge ( allOf , { onMergeError } ) ;
34
+ const mergedSchemas = merge ( allOf , { onMergeError } ) as SchemaObject ;
35
35
return mergedSchemas ;
36
36
}
37
37
@@ -660,11 +660,7 @@ function createEdges({
660
660
}
661
661
662
662
if ( schema . items ?. allOf !== undefined ) {
663
- const { mergedSchemas } : { mergedSchemas : SchemaObject } = mergeAllOf (
664
- schema . items ?. allOf
665
- ) ;
666
- delete schema . allOf ;
667
- const combinedSchemas = { ...schema , ...mergedSchemas } ;
663
+ const mergedSchemas = mergeAllOf ( schema . items ) ;
668
664
669
665
if ( SCHEMA_TYPE === "request" ) {
670
666
if ( mergedSchemas . readOnly && mergedSchemas . readOnly === true ) {
You can’t perform that action at this time.
0 commit comments