Skip to content

Commit db3c867

Browse files
committed
added schema validation for config
1 parent e7bc81d commit db3c867

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/schemaValidation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ const ConfigSchema = {
266266
useLambdaInternal: {
267267
type: "boolean",
268268
errorMessage: "Invalid config; useLambdaInternal must be true/false"
269+
},
270+
approvalThreshold: {
271+
type: "number",
272+
errorMessage: "Invalid config; approvalThreshold must be a number"
273+
},
274+
rejectionThreshold: {
275+
type: "number",
276+
errorMessage: "Invalid config; rejectionThreshold must be a number"
269277
}
270278
},
271279
anyOf: [

0 commit comments

Comments
 (0)