Fix: Avoid replacing entire generatedDocumentation

components
This commit is contained in:
ammi1378 2023-05-22 07:07:36 +03:30 committed by Bassel
parent 066258b3fb
commit 69e63dd00d

View File

@ -182,9 +182,7 @@ module.exports = ({ strapi }) => {
generatedDocumentation = produce(generatedDocumentation, (draft) => {
if (generatedSchemas) {
draft.components = {
schemas: { ...draft.components.schemas, ...generatedSchemas },
};
draft.components.schemas = { ...draft.components.schemas, ...generatedSchemas };
}
if (newApiPath) {