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