11import Joi from 'joi' ;
22import DriverDependencies from './DriverDependencies' ;
33
4- const schemaQueueOptions = Joi . object ( ) . keys ( {
4+ const schemaQueueOptions = Joi . object ( ) . strict ( true ) . keys ( {
55 concurrency : Joi . number ( ) . min ( 1 ) . integer ( ) ,
66 continueWaitTimeout : Joi . number ( ) . min ( 0 ) . integer ( ) ,
77 executionTimeout : Joi . number ( ) . min ( 0 ) . integer ( ) ,
@@ -11,7 +11,7 @@ const schemaQueueOptions = Joi.object().keys({
1111 sendCancelMessageFn : Joi . func ( ) ,
1212} ) ;
1313
14- const jwtOptions = Joi . object ( ) . keys ( {
14+ const jwtOptions = Joi . object ( ) . strict ( true ) . keys ( {
1515 // JWK options
1616 jwkRetry : Joi . number ( ) . min ( 1 ) . max ( 5 ) . integer ( ) ,
1717 jwkDefaultExpire : Joi . number ( ) . min ( 0 ) ,
@@ -94,9 +94,9 @@ const schemaOptions = Joi.object().keys({
9494 allowUngroupedWithoutPrimaryKey : Joi . boolean ( ) ,
9595 orchestratorOptions : Joi . alternatives ( ) . try (
9696 Joi . func ( ) ,
97- Joi . object ( ) . keys ( {
97+ Joi . object ( ) . strict ( true ) . keys ( {
9898 redisPrefix : Joi . string ( ) . allow ( '' ) ,
99- redisPoolOptions : Joi . object ( ) . keys ( {
99+ redisPoolOptions : Joi . object ( ) . strict ( true ) . keys ( {
100100 poolMin : Joi . number ( ) . min ( 0 ) ,
101101 poolMax : Joi . number ( ) . min ( 0 ) ,
102102 idleTimeoutSeconds : Joi . number ( ) . min ( 0 ) ,
0 commit comments