Skip to main content

@terascope/job-components / operations/core/schema-core / default

Abstract Class: default<T>

Defined in: job-components/src/operations/core/schema-core.ts:8

A base class for supporting "Schema" definition

Extended by​

Type Parameters​

Type Parameter
T

Constructors​

Constructor​

new default<T>(context, opType): SchemaCore<T>

Defined in: job-components/src/operations/core/schema-core.ts:12

Parameters​

ParameterType
contextContext
opTypeOpType

Returns​

SchemaCore<T>

Properties​

PropertyModifierTypeDefined in
contextprotectedContextjob-components/src/operations/core/schema-core.ts:9
opTypereadonlyOpTypejob-components/src/operations/core/schema-core.ts:10

Methods​

build()​

abstract build(context?): any

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

Parameters​

ParameterType
context?Context

Returns​

any


validate()​

abstract validate(inputConfig): object

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

Parameters​

ParameterType
inputConfigRecord<string, any>

Returns​

object

config​

config: OpConfig & T

warnings​

warnings: JobWarning[]


validateJob()?​

abstract optional validateJob(job): void

Defined in: job-components/src/operations/core/schema-core.ts:21

Parameters​

ParameterType
jobValidatedJobConfig

Returns​

void