@terascope/job-components / job-validator / JobValidator
Class: JobValidator
Constructors
new JobValidator()
new JobValidator(
context
,options
):JobValidator
Parameters
Parameter | Type |
---|---|
context | Context |
options | object |
options.terasliceOpPath ? | string |
Returns
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
Parameter | Type |
---|---|
obj | Record <string , any > |
name | string |
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
Parameter | Type |
---|---|
jobSpec | Partial <JobConfig | JobConfigParams > |
Returns
Promise
<ValidatedJobConfig
>