Skip to content
Shapemetry

@huukhanhnguyen/model / schema/validate

schema/validate

ExpressionError

ExpressionError = { expression: string; message: string; path: string; }

expression

expression: string

message

message: string

path

path: string


ModelDiagnostic

ModelDiagnostic = { errors: string[]; index: number; key: string | undefined; section: string; typeName: string; }

errors

errors: string[]

index

index: number

key

key: string | undefined

section

section: string

Which root array the node sits in ("parameters" | "objects"), or "" for model-level errors.

typeName

typeName: string


RegistryError

RegistryError = { message: string; path: string; }

message

message: string

path

path: string


SafeParseModel

SafeParseModel = { data: ModelJSON; success: true; } | { error: z.ZodError; success: false; }

Last updated: 📖 1 min readEdit on GitHub