Skip to content

Commit

Permalink
Added: Feature For load OpenAPIValidator Cache on app boot
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyvishal committed Jun 18, 2024
1 parent 049acd4 commit ba9e1a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const main = async () => {
try {
await ClientUtils.initializeConnection();
await GatewayUtils.getInstance().initialize();
await OpenApiValidatorMiddleware.getInstance().initOpenApiMiddleware();

console.log("After Open API middleware");
if (getConfig().responseCache.enabled) {
await ResponseCache.getInstance().initialize();
Expand All @@ -134,6 +134,7 @@ const main = async () => {
getConfig().app.gateway.mode.toLocaleUpperCase().substring(1)
);
});
await OpenApiValidatorMiddleware.getInstance().initOpenApiMiddleware();
} catch (err) {
if (err instanceof Exception) {
logger.error(err.toString());
Expand Down

0 comments on commit ba9e1a1

Please sign in to comment.