Update add-errors-to-response-schemas.ts

This commit is contained in:
Daniel Hougaard
2024-09-27 20:12:08 +04:00
parent 5ffb6b7232
commit 433e58655a

View File

@@ -10,9 +10,6 @@ export const addErrorsToResponseSchemas = fp(async (server) => {
...DefaultResponseErrorsSchema,
...routeOptions.schema.response
};
} else {
routeOptions.schema = routeOptions.schema || {};
routeOptions.schema.response = { ...DefaultResponseErrorsSchema };
}
});
});