Skip to main content

@terascope/job-components / generate-job-schema

generate-job-schema

Functions​

generateJobJSONSchema()​

generateJobJSONSchema(context): JSONSchemaNode

Defined in: job-components/src/generate-job-schema.ts:146

Generate a draft-07 JSON Schema for a Teraslice job from the live jobSchema, opSchema, and apiSchema. The schema reflects the given context, so kubernetes-only fields are included only on kubernetes clusters.

Operation- and API-specific options (what each asset adds) are not described here; operations and apis allow additional properties.

Parameters​

ParameterType
contextContext

Returns​

JSONSchemaNode