diff --git a/package.json b/package.json index f5a38b1..55ce39d 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,9 @@ "@middy/core": "^5", "@middy/http-router": "^5", "@aws-lambda-powertools/logger": "^2", - "@aws-lambda-powertools/parser": "^2" + "@aws-lambda-powertools/parser": "^2", + "zod": "^3", + "zod-to-json-schema": "^3" }, "devDependencies": { "@aws-lambda-powertools/logger": "^2.10.0", diff --git a/src/cli/generators/middy/middy-generator.ts b/src/cli/generators/middy/middy-generator.ts index 7d5fe99..a176380 100644 --- a/src/cli/generators/middy/middy-generator.ts +++ b/src/cli/generators/middy/middy-generator.ts @@ -40,7 +40,7 @@ export interface ${className}Handlers { export class ${className} { - private logger = new Logger({ serviceName: '${className}' }); + logger = new Logger({ serviceName: '${className}' }); ${this.routesFunction(routes)}