Job Components: `config-validators`
Table of contents
Functions
Functions
validateAPIConfig
▸ validateAPIConfig<T
>(inputSchema
, inputConfig
): APIConfig
& T
Merges the provided inputSchema with commonSchema and then validates the provided apiConfig against the resulting schema.
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
inputSchema | Schema <any > |
inputConfig | Record <string , any > |
Returns
APIConfig
& T
Defined in
packages/job-components/src/config-validators.ts:33
validateJobConfig
▸ validateJobConfig<T
>(inputSchema
, inputConfig
): ValidatedJobConfig
& T
Merges the provided inputSchema with commonSchema and then validates the provided jobConfig against the resulting schema.
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
inputSchema | Schema <any > |
inputConfig | Record <string , any > |
Returns
Defined in
packages/job-components/src/config-validators.ts:53
validateOpConfig
▸ validateOpConfig<T
>(inputSchema
, inputConfig
): OpConfig
& T
Merges the provided inputSchema with commonSchema and then validates the provided opConfig against the resulting schema.
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
inputSchema | Schema <any > |
inputConfig | Record <string , any > |
Returns
OpConfig
& T