Skip to content

Commit

Permalink
fix: update json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bfaulk96 committed Sep 30, 2022
1 parent cf9a5cb commit 5eff490
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/ServerlessAutoSwagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class ServerlessAutoSwagger {
error: console.error,
} as Logging['log'];

this.log.notice('Test 6');
this.registerOptions();

this.commands = {
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/custom-properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"type": "boolean"
},
"lambdaAuthorizer": {
"oneOf": [
"anyOf": [
{ "type": "string" },
{
"type": "object",
Expand All @@ -46,7 +46,7 @@
"arn": { "type": "string" },
"identitySource": { "type": "string" },
"identityValidationExpression": { "type": "string" },
"resultTtlInSeconds": { "type": ["integer", "string"] },
"resultTtlInSeconds": { "type": ["string"] },
"type": { "type": "string" }
}
},
Expand Down

0 comments on commit 5eff490

Please sign in to comment.