Skip to content

Function: getMeta()

Makaio Framework


Makaio Framework / kernel/cli / getMeta

getMeta(schema): GlobalMeta | undefined

Defined in: ../../../packages/kernel/src/cli/schema-utils.ts:25

Extract .meta() from a Zod schema, unwrapping optionals/defaults.

Recursively follows unwrap() so that meta attached to the inner schema of z.optional(z.string().meta({…})) is still found.

FieldSchema

The Zod schema to inspect.

GlobalMeta | undefined

The resolved Zod global metadata or undefined.