# StandardSchemaV1 (@salmonui/data-grid/engine/validation)

> The StandardSchemaV1 interface of @salmonui/data-grid/engine/validation: The Standard Schema v1 interface (https://standardschema.dev), copied as the specification asks so Salmon UI depends on no package for it. Zod, Valibot, ArkType and other libraries implement it.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-validation/StandardSchemaV1

```ts
import type { StandardSchemaV1 } from '@salmonui/data-grid/engine/validation';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-validation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-validation.md).

## Reference

Kind: interface

```ts
interface StandardSchemaV1<Input = unknown, Output = Input> {
    readonly '~standard': StandardSchemaV1.Props<Input, Output>;
}

namespace StandardSchemaV1 {
    interface Props<Input = unknown, Output = Input> {
        readonly version: 1;
        readonly vendor: string;
        readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
        readonly types?: Types<Input, Output> | undefined;
    }
    type Result<Output> = SuccessResult<Output> | FailureResult;
    interface SuccessResult<Output> {
        readonly value: Output;
        readonly issues?: undefined;
    }
    interface FailureResult {
        readonly issues: ReadonlyArray<Issue>;
    }
    interface Issue {
        readonly message: string;
        readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
    }
    interface PathSegment {
        readonly key: PropertyKey;
    }
    interface Types<Input = unknown, Output = Input> {
        readonly input: Input;
        readonly output: Output;
    }
    type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
    type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
}
```

The Standard Schema v1 interface (https://standardschema.dev), copied as
the specification asks so Salmon UI depends on no package for it. Zod,
Valibot, ArkType and other libraries implement it.

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `~standard` | `readonly '~standard': StandardSchemaV1.Props<Input, Output>;` |  | The Standard Schema properties. |
