Job Components: `Job Validator Job Validator`
job-validator.JobValidator
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new JobValidator(context
, options?
): JobValidator
Parameters
Name | Type |
---|---|
context | Context |
options | Object |
options.terasliceOpPath? | string |
Returns
Defined in
packages/job-components/src/job-validator.ts:17
Properties
schema
• schema: Schema
<any
>
Defined in
packages/job-components/src/job-validator.ts:13
Methods
hasSchema
▸ hasSchema(obj
, name
): void
Parameters
Name | Type |
---|---|
obj | Record <string , any > |
name | string |
Returns
void
Defined in
packages/job-components/src/job-validator.ts:89
validateConfig
▸ validateConfig(jobSpec
): ValidatedJobConfig
Validate the job configuration, including the Operations and APIs configuration
Parameters
Name | Type |
---|---|
jobSpec | Partial <ValidatedJobConfig > |