Skip to content

Add optional rust_decimal and indexmap feature flags#8

Open
WiggidyW wants to merge 2 commits into
cimatic:mainfrom
WiggidyW:main
Open

Add optional rust_decimal and indexmap feature flags#8
WiggidyW wants to merge 2 commits into
cimatic:mainfrom
WiggidyW:main

Conversation

@WiggidyW

Copy link
Copy Markdown

Summary

  • Add optional rust_decimal feature with ZodSchema impl for rust_decimal::Decimal (maps to z.number())
  • Add optional indexmap feature with ZodSchema impl for indexmap::IndexMap<String, T> (maps to z.record(z.string(), T))

Both features are off by default and gated behind #[cfg(feature = "...")].

Usage

[dependencies]
zod_gen = { version = "1.3.0", features = ["rust_decimal", "indexmap"] }

WiggidyW and others added 2 commits March 10, 2026 17:59
Maps Decimal to z.number() in generated Zod schemas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…, T>

Maps IndexMap<String, T> to z.record(z.string(), T) in generated Zod schemas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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