Skip to content

fix #386 #391

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

Merged
merged 2 commits into from
Jun 9, 2023
Merged

fix #386 #391

merged 2 commits into from
Jun 9, 2023

Conversation

Code-Hex
Copy link
Owner

@Code-Hex Code-Hex commented Jun 9, 2023

for #386

  • Replace direct checks for notAllowEmptyString configuration with a new method shouldEmitAsNotAllowEmptyString in the Visitor class.
  • The new method shouldEmitAsNotAllowEmptyString encapsulates the check for the notAllowEmptyString configuration and the type of the variable, making the code cleaner and more readable.
  • The changes have been made across myzod, yup, and zod schemas.

Code-Hex added 2 commits June 10, 2023 01:20
- Replace direct checks for `notAllowEmptyString` configuration with a new method `shouldEmitAsNotAllowEmptyString` in the `Visitor` class.
- The new method `shouldEmitAsNotAllowEmptyString` encapsulates the check for the `notAllowEmptyString` configuration and the type of the variable, making the code cleaner and more readable.
- The changes have been made across `myzod`, `yup`, and `zod` schemas.
@Code-Hex Code-Hex merged commit 3fd4ed6 into main Jun 9, 2023
@Code-Hex Code-Hex deleted the fix/386 branch June 9, 2023 16:23
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