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
Error with dry-validation 1.3 #504
Comments
@marvintrejoxi , the validation syntax you have is wrong, check out the documentation of Dry. Also you need to add |
@seuros i have that in one initializer
however, I always get the same error |
https://dry-rb.org/gems/dry-validation/1.3/ The block |
@seuros can you give an example of a contract with validations? because, i dont understand you :( |
validation do
params do
required(:name).filled
end
end
But check the documentation, a lot of things changed between 0.x and 1.3.
…On Thu, Nov 28, 2019 at 7:24 PM Marvin Trejo ***@***.***> wrote:
@seuros <https://github.com/seuros> can you give an example of a contract
with validations? because, i dont understand you :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#504?email_source=notifications&email_token=AASIUTZIWEBE4WNL3WZTFG3QWAEFNA5CNFSM4JSXINXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNH6MY#issuecomment-559578931>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASIUT6R4ZIUTXYUWBFVZFTQWAEFNANCNFSM4JSXINXA>
.
|
I have been getting this error with dry-validation in my contract
this is my contract:
and Im using those gems:
any idea why dry validation doesn't work correctly with reform gem in that version?
The text was updated successfully, but these errors were encountered: