---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/media/functions/validateOps.md'
---

# Function: validateOps()

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

Defined in: [src/batteries/media/validate.ts:309](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/media/validate.ts#L309)

Validate a JSON ops array into a [MediaPlan](../interfaces/MediaPlan.md). 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`](../interfaces/MediaOp.md)\[]      | The ops array.                     |
| `options` | [`ValidateOptions`](../interfaces/ValidateOptions.md) | The deployment's capability probe. |

## Returns

[`MediaPlan`](../interfaces/MediaPlan.md)

The validated plan (no spans).
