Skip to main content

@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

ParameterType
contextContext
opTypeOpType

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

ParameterType
context?Context

Returns

any

Source

packages/job-components/src/operations/core/schema-core.ts:16


validate()

abstract validate(inputConfig): OpConfig & T

Parameters

ParameterType
inputConfigRecord<string, any>

Returns

OpConfig & T

Source

packages/job-components/src/operations/core/schema-core.ts:17


validateJob()?

optional abstract validateJob(job): void

Parameters

ParameterType
jobValidatedJobConfig

Returns

void

Source

packages/job-components/src/operations/core/schema-core.ts:18