@terascope/job-components / operations/core/schema-core / default
Class: abstract
default<T>
A base class for supporting "Schema" definition
Extended by
Type parameters
Type parameter |
---|
T |
Constructors
new default()
new default<
T
>(context
,opType
):default
<T
>
Parameters
Parameter | Type |
---|---|
context | Context |
opType | OpType |
Returns
default
<T
>
Source
packages/job-components/src/operations/core/schema-core.ts:11
Properties
context
protected
context:Context
Source
packages/job-components/src/operations/core/schema-core.ts:8
opType
readonly
opType:OpType
Source
packages/job-components/src/operations/core/schema-core.ts:9
Methods
build()
abstract
build(context
?):any
Parameters
Parameter | Type |
---|---|
context ? | Context |
Returns
any
Source
packages/job-components/src/operations/core/schema-core.ts:16
validate()
abstract
validate(inputConfig
):OpConfig
&T
Parameters
Parameter | Type |
---|---|
inputConfig | Record <string , any > |
Returns
OpConfig
& T
Source
packages/job-components/src/operations/core/schema-core.ts:17
validateJob()?
optional
abstract
validateJob(job
):void
Parameters
Parameter | Type |
---|---|
job | ValidatedJobConfig |
Returns
void
Source
packages/job-components/src/operations/core/schema-core.ts:18