AshTypescript.Codegen.ValibotSchemaGenerator (ash_typescript v0.17.3)

Copy Markdown View Source

Generates Valibot validation schemas for Ash resources and actions.

This module is a thin formatter adapter over AshTypescript.Codegen.SchemaCore. It implements AshTypescript.Codegen.SchemaFormatter with Valibot-specific output syntax (v.pipe() composition, v.picklist, v.optional(schema), etc.).

Summary

Functions

Generates a Valibot schema definition for an RPC action's input.

Generates a Valibot schema for a single resource.

Functions

generate_valibot_schema(resource, action, rpc_action_name)

Generates a Valibot schema definition for an RPC action's input.

generate_valibot_schema_for_resource(resource)

Generates a Valibot schema for a single resource.