@terascope/job-components / job-validator / JobValidator
Class: JobValidator
Defined in: packages/job-components/src/job-validator.ts:11
Constructors
new JobValidator()
new JobValidator(
context
):JobValidator
Defined in: packages/job-components/src/job-validator.ts:16
Parameters
Parameter | Type |
---|---|
context | Context |
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
schema | public | Schema <any > | packages/job-components/src/job-validator.ts:12 |
Methods
hasSchema()
hasSchema(
obj
,name
):void
Defined in: packages/job-components/src/job-validator.ts:125
Parameters
Parameter | Type |
---|---|
obj | Record <string , any > |
name | string |
Returns
void
validateConfig()
validateConfig(
jobSpec
):Promise
<ValidatedJobConfig
>
Defined in: packages/job-components/src/job-validator.ts:26
Validate the job configuration, including the Operations and APIs configuration
Parameters
Parameter | Type |
---|---|
jobSpec | Partial <JobConfig | JobConfigParams > |
Returns
Promise
<ValidatedJobConfig
>