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

# Function: passesSchema()

```ts
function passesSchema(schema: Schema, value: unknown): boolean;
```

Defined in: [src/lib/utils/validation.ts:16](https://github.com/NHTIO/ADK/blob/v1.20260824.1/src/src/lib/utils/validation.ts#L16)

Returns `true` if `value` satisfies `schema` without throwing.

## Parameters

| Parameter | Type      | Description                     |
| --------- | --------- | ------------------------------- |
| `schema`  | `Schema`  | The schema to validate against. |
| `value`   | `unknown` | The value to test.              |

## Returns

`boolean`

`true` when `value` passes the schema; `false` otherwise.

## Remarks

Aborts on the first validation error. Use [validateOrThrow](validateOrThrow.md) or
[asyncValidateOrThrow](asyncValidateOrThrow.md) when you need the full set of field errors.
