mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 06:40:42 +00:00
Fix: Avoid replacing entire generatedDocumentation
components
This commit is contained in:
parent
066258b3fb
commit
69e63dd00d
@ -182,9 +182,7 @@ module.exports = ({ strapi }) => {
|
|||||||
|
|
||||||
generatedDocumentation = produce(generatedDocumentation, (draft) => {
|
generatedDocumentation = produce(generatedDocumentation, (draft) => {
|
||||||
if (generatedSchemas) {
|
if (generatedSchemas) {
|
||||||
draft.components = {
|
draft.components.schemas = { ...draft.components.schemas, ...generatedSchemas };
|
||||||
schemas: { ...draft.components.schemas, ...generatedSchemas },
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newApiPath) {
|
if (newApiPath) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user