• Overview
@angular/forms/signals

validateStandardSchema

function

Validates a field using a StandardSchemaV1 compatible validator (e.g. a Zod validator).

API

function validateStandardSchema<
  TSchema,
  TValue extends IgnoreUnknownProperties<TSchema>,
>(path: FieldPath<TValue>, schema: StandardSchemaV1<TSchema>): void;

validateStandardSchema

void

Validates a field using a StandardSchemaV1 compatible validator (e.g. a Zod validator).

See https://github.com/standard-schema/standard-schema for more about standard schema.

@parampathFieldPath<TValue>

The FieldPath to the field to validate.

@paramschemaStandardSchemaV1<TSchema>

The standard schema compatible validator to use for validation.

@returnsvoid

Description

Validates a field using a StandardSchemaV1 compatible validator (e.g. a Zod validator).

See https://github.com/standard-schema/standard-schema for more about standard schema.

Jump to details