Skip to content

feat: add ZodSchema impls for u8, u16, i8, i16#10

Open
liyang8246 wants to merge 1 commit into
cimatic:mainfrom
liyang8246:add-small-int-impls
Open

feat: add ZodSchema impls for u8, u16, i8, i16#10
liyang8246 wants to merge 1 commit into
cimatic:mainfrom
liyang8246:add-small-int-impls

Conversation

@liyang8246

@liyang8246 liyang8246 commented Jun 11, 2026

Copy link
Copy Markdown

close #9

The small integer types were missing despite the README claiming
\�uilt-in support for all common Rust types\. They map to
\z.number()\, matching the existing impls for the larger integer
and float types.

This unblocks the \#[derive(ZodSchema)]\ macro on enums and structs
that contain small-integer fields (byte-level protocols, packed
bitfields, layer indices, etc.).
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.

[feat request] support for u8/u16/i8/i16

1 participant