Skip to content

Conversation

@Tanner-MS
Copy link

This pull request makes a small fix to the logic for generating Zod schemas for number columns in the numberColumnToSchema function. Specifically, it corrects the order of applying the .int() method when coercing numbers, ensuring that integer coercion is only applied when appropriate.

  • Fixed the logic in numberColumnToSchema to apply .int() to z.coerce.number() only when the column is an integer, preventing unintended integer coercion for non-integer columns.

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