-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support class-validator 0.12.x #2
Comments
Hello. However, keep in mind that I was wondering about a more efficient way to handle third-party decorators, so there may be missing support for some other decorators too. Feel free to let me know if there are other decorators from Also I updated the README so you should read it again. |
Thank you much for the fast answer. |
I'm sorry but this same example is still not working with the new released version. |
One thing is class-validator has been updated to 0.12.x where changes were introduce to the metadata store and how to get it. That might be the why? Would be good to add version range in your package.json on the class-validator 0.11.x and maybe (please) have a 1.5 version supporting class-validator >= 0.12.x Thanks a lot! |
Yeah I updated class-validator and my tests break now. I'll have to look into that. |
So, it appears that since the 0.12 version, the decorators names are lost when stored. I opened an issue there. So, unless they fix that, there'd be no way to know which decorators are used in your classes. So if you want to use |
I hope they'll fix this in class-validator🤞 |
@CyriacBr we have forked class-validator here if you could provide maybe a version that uses @ts-revival/class-validator so we can start moving forward that would be awesome! Thanks for this awesome lib again |
Hi @nolazybits . Sorry for the late reply, was kinda busy. |
I really like the fact you are leveraging existing class-validator.
I've been trying to have data generated for a model like this for instance
Sadly the name property is not generated. Only the one with the
Fixture
decorator.Would you have a working example somewhere I could look at or is this a bug?
Do I need to map the class-validator metadataStore to the one used by this library at all?
Thanks for the library!
The text was updated successfully, but these errors were encountered: