Skip to main content

@terascope/job-components / job-validator / JobValidator

Class: JobValidator

Constructors

new JobValidator()

new JobValidator(context, options): JobValidator

Parameters

ParameterType
contextContext
optionsobject
options.terasliceOpPath?string

Returns

JobValidator

Source

packages/job-components/src/job-validator.ts:18

Properties

schema

schema: Schema<any>

Source

packages/job-components/src/job-validator.ts:14

Methods

hasSchema()

hasSchema(obj, name): void

Parameters

ParameterType
objRecord<string, any>
namestring

Returns

void

Source

packages/job-components/src/job-validator.ts:102


validateConfig()

validateConfig(jobSpec): Promise<ValidatedJobConfig>

Validate the job configuration, including the Operations and APIs configuration

Parameters

ParameterType
jobSpecPartial<JobConfig | JobConfigParams>

Returns

Promise<ValidatedJobConfig>

Source

packages/job-components/src/job-validator.ts:28