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
| Parameter | Type | Description |
|---|---|---|
ops | readonly MediaOp[] | The ops array. |
options | ValidateOptions | The deployment's capability probe. |
Returns
The validated plan (no spans).