Skip to content

add: nullable schemas instead optional on zod#13

Merged
jbreite merged 3 commits intomainfrom
add-nullable-schemas-instead-optional
Jan 30, 2026
Merged

add: nullable schemas instead optional on zod#13
jbreite merged 3 commits intomainfrom
add-nullable-schemas-instead-optional

Conversation

@jbreite
Copy link
Copy Markdown
Owner

@jbreite jbreite commented Jan 30, 2026

No description provided.

Replaces all optional tool input parameters (T | undefined) with nullable types (T | null) in Zod schemas and exported interfaces to ensure compatibility with OpenAI structured outputs. Updates documentation, type definitions, and runtime handling to use null for unset values, and adjusts defaulting logic accordingly. This is a breaking change for consumers of the API and is released as v0.4.0.
Updated zod schemas across multiple tool modules to explicitly set .default(null) for fields marked as .nullable(). This ensures consistent default values and improves schema validation behavior.
@jbreite jbreite merged commit a5e270c into main Jan 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant