AxUCPSchemaValidator Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxUCPSchemaValidator.md class AxUCPSchemaValidator

AxUCPSchemaValidator

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/schema.ts#L25

Bounded, dependency-free JSON Schema 2020-12 validator for UCP schemas.

Constructors

Constructor

TypeScript
new AxUCPSchemaValidator(options: Readonly<AxUCPSchemaValidationOptions>): AxUCPSchemaValidator;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/schema.ts#L28

Parameters

ParameterType
optionsReadonly<AxUCPSchemaValidationOptions>

Returns

AxUCPSchemaValidator

Methods

clearCache()

TypeScript
clearCache(): void;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/schema.ts#L43

Returns

void


validate()

TypeScript
validate(value: unknown, schemaUrl: string): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/schema.ts#L32

Parameters

ParameterType
valueunknown
schemaUrlstring

Returns

Promise<void>

Docs