Skip to content

Home > intention-kernel > SchemaDefinition

SchemaDefinition interface ​

Input accepted by defineSchema().

Signature:

typescript
export interface SchemaDefinition<T>

Properties ​

Property

Modifiers

Type

Description

jsonSchema?

readonly

() => JsonSchema | Promise<JsonSchema>

(Optional) Optional JSON Schema projection required for model-visible capability inputs.

validate

readonly

(value: unknown) => { readonly value: T; readonly issues?: undefined; } | { readonly issues: readonly { readonly message: string; readonly path?: readonly PropertyKey[]; }[]; } | Promise<{ readonly value: T; readonly issues?: undefined; } | { readonly issues: readonly { readonly message: string; readonly path?: readonly PropertyKey[]; }[]; }>

Vendor adapter that returns either a typed value or normalized issues.

vendor

readonly

string

Validator or adapter name used for diagnostics.