-
Notifications
You must be signed in to change notification settings - Fork 806
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: schema-based validation not working #1155
Comments
Same here.
|
The schema-based validation stopped working with version |
Looks like Schema Based validation will be deprecated in 1.0 #178. Bummer |
If you want schema based validation, check out the zod readme's comparison with other validators |
I know alternatives, but this feature is in the document and should be a
bug.
2022年10月6日(木) 13:52 Brage Sekse Aarset ***@***.***>:
… IF you need schema based validation, check out the zod readme's
comparison with other validators
<https://github.com/colinhacks/zod#comparison>
—
Reply to this email directly, view it on GitHub
<#1155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB624UGEWEJZLBVTBAHZG2TWBZLKRANCNFSM47SEWUOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It is currently a bug, but as this feature is going to be deprecated, it's not wise for this project to prioritise scarce maintainer time and effort towards fixing it. After almost a year of inactivity, we have gotten a little bit of maintainer involvement, and I think we will have to accept that we can't get everything we want, at least for the time being. See #1719 PR is welcome, though. The first step to fixing this would be to write some tests for the schema based validation. |
How about removing it from the document?
It's still on the homepage (readme) and confusing peoole.
It's already broken and no need to keep it in the document.
2022年10月6日(木) 14:10 Brage Sekse Aarset ***@***.***>:
… It is currently a bug, but as this feature is going to be deprecated, it's
not wise for this project to prioritise scarce maintainer time and effort
towards fixing it. After almost a year of inactivity, we have gotten a
little bit of maintainer involvement, and I think we will have to accept
that we can't get everything we want, at least for the time being. See
#1719 <#1719>
PR is welcome, though. The first step to fixing this would be to write
some tests for the schema based validation.
—
Reply to this email directly, view it on GitHub
<#1155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB624UD5LGXGBKDUUWTGCZTWBZNNNANCNFSM47SEWUOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
That is a good compromise solution. I can make a PR. |
As mentioned in the thread, schema-based validation is deprecated and will be removed. The documentation has been updated, it now contains a suggestion of what libraries to use instead of class-validator. To clarify, I am closing this issue as wontfix. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We have been trying to use the schema based validation as described in the following sample:
https://github.com/typestack/class-validator/tree/develop/sample/sample5-schemas
We were not able to get the schema based validation to work and even executing the code from the provided sample did not work.
This looks like there has been a regression somewhere in the past?
The text was updated successfully, but these errors were encountered: