Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show zod default values #20

Merged
merged 1 commit into from
Nov 28, 2023
Merged

fix: show zod default values #20

merged 1 commit into from
Nov 28, 2023

Conversation

SimeonC
Copy link
Contributor

@SimeonC SimeonC commented Nov 27, 2023

If a zod value is defaulted we should show the default, not undefined.

This also fixes the tests so that the logs do not bleed into other tests causing false results. I would have liked to change this to a class to avoid having to pass the UI argument around but didn't think it'd make that much difference to the code and it'd be more changes than just the bugfix.

This is a followup to #14

If a zod value is defaulted we should show the default, not `undefined`.

This also fixes the tests so that the logs do not bleed into other tests.
@Julien-R44 Julien-R44 merged commit 4a1e93b into Julien-R44:main Nov 28, 2023
3 checks passed
@Julien-R44
Copy link
Owner

Thanks!

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.

None yet

2 participants