Skip to main content

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

Class: JobValidator

Constructors

new JobValidator()

new JobValidator(context): JobValidator

Parameters

ParameterType
contextContext

Returns

JobValidator

Source

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

Properties

schema

schema: Schema<any>

Source

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

Methods

hasSchema()

hasSchema(obj, name): void

Parameters

ParameterType
objRecord<string, any>
namestring

Returns

void

Source

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


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:26