Skip to main content

@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

ParameterType
inputSchemaSchema<any>
inputConfigRecord<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

ParameterType
inputSchemaSchema<any>
inputConfigRecord<string, any>

Returns

ValidatedJobConfig & T


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

ParameterType
inputSchemaSchema<any>
inputConfigRecord<string, any>

Returns

OpConfig & T