mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +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) => {
|
||||
if (generatedSchemas) {
|
||||
draft.components = {
|
||||
schemas: { ...draft.components.schemas, ...generatedSchemas },
|
||||
};
|
||||
draft.components.schemas = { ...draft.components.schemas, ...generatedSchemas };
|
||||
}
|
||||
|
||||
if (newApiPath) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user