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

Opt out of class-validator #639

Open
3 tasks done
gmanavarro opened this issue Jun 10, 2024 · 0 comments
Open
3 tasks done

Opt out of class-validator #639

gmanavarro opened this issue Jun 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gmanavarro
Copy link

Clear and concise description of the problem

Just recently I started looking for an implementation of i18n for Nestjs and found this library. It seems pretty useful so far, but I tried to start using it in my project and it's throwing an error from I18nService regarding the class-validator library. I guess it's a required dependency and I need to install it for nestjs-i18n to work.
Since I'm using zod and I'm not planning to use class-validator, I wanted to know if it would be possible to opt out of the features using class-validator.

Suggested solution

Add some kind of option in the I18nModule config to opt out of using class-validator related features.

Alternative

An alternative would be to just install class-validator and get over it, but I don't think I should be installing a dependency I have no use for just for the sake of a dependency requirement of features I will not be using.

Additional context

No response

Validations

@gmanavarro gmanavarro added the enhancement New feature or request label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant