diff --git a/package.json b/package.json index 63a8f25..e3e4bc4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,11 @@ "url": "https://github.com/SamWSoftware/serverless-auto-swagger" }, "scripts": { - "build": "tsc -p tsconfig.build.json && copyfiles -f ./src/resources/*.py ./dist/resources/", + "start": "npm run build:watch", + "compile": "tsc -p tsconfig.build.json", + "build": "npm run compile", + "build:watch": "npm run compile -- --watch", + "postbuild": "copyfiles -f ./src/resources/*.py ./dist/resources/", "check-types": "tsc --noEmit", "lint": "eslint 'src/**/*.ts'", "lint:fix": "npm run lint -- --fix", diff --git a/src/ServerlessAutoSwagger.ts b/src/ServerlessAutoSwagger.ts index cf04802..b482d7f 100644 --- a/src/ServerlessAutoSwagger.ts +++ b/src/ServerlessAutoSwagger.ts @@ -62,6 +62,7 @@ export default class ServerlessAutoSwagger { error: console.error, } as Logging['log']; + this.log.notice('Test 6'); this.registerOptions(); this.commands = { diff --git a/src/schemas/custom-properties.schema.json b/src/schemas/custom-properties.schema.json index 36a507c..c8d5d2e 100644 --- a/src/schemas/custom-properties.schema.json +++ b/src/schemas/custom-properties.schema.json @@ -37,7 +37,7 @@ "type": "boolean" }, "lambdaAuthorizer": { - "oneOf": [ + "anyOf": [ { "type": "string" }, { "type": "object", @@ -46,7 +46,7 @@ "arn": { "type": "string" }, "identitySource": { "type": "string" }, "identityValidationExpression": { "type": "string" }, - "resultTtlInSeconds": { "type": ["integer", "string"] }, + "resultTtlInSeconds": { "type": ["string"] }, "type": { "type": "string" } } },