Skip to content
1 min read · 88 words

Function: validateOps()

ts
function validateOps(
  ops: readonly MediaOp[],
  options: ValidateOptions,
): MediaPlan;

Defined in: src/batteries/media/validate.ts:309

Validate a JSON ops array into a MediaPlan. The same checks as the pipe path — verbs fold the same way, args validate against the same specs — so the two front-ends produce identical plans for equivalent statements.

Parameters

ParameterTypeDescription
opsreadonly MediaOp[]The ops array.
optionsValidateOptionsThe deployment's capability probe.

Returns

MediaPlan

The validated plan (no spans).