Skip to content

Conversation

@MPiland
Copy link

@MPiland MPiland commented Jun 6, 2025

Added config options

  • zodv4
    • Added this as a schema option
    • z.ZodType is now mapped properly with the new update
    • nativeEnum is updated to enum
  • zodStrictObject
    • This is for zod specifically
    • Zod v3 appends the objects with a .strict() if true otherwise nothing if false
    • Zod v4 prepends the objects with z.strictObject if true, otherwise it's just z.object if false
  • inputDiscriminator
    • Accepts a string as the discriminator key and makes it equal to the literal of the input type name
  • lazyStrategy
    • Accepts only 'circular' or 'all'
    • 'all' is current behavior
    • 'circular' only adds lazy for truly circular references which are found with the util function

@MPiland MPiland closed this Jun 6, 2025
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