-
-
Notifications
You must be signed in to change notification settings - Fork 576
Broken validation errors with v0.15.4 #1886
Comments
Can you please add full steps to reproduce and fill out the other information requested in the issue template? With the detail provided, the issue can not be reproduced. |
Oh! I was lucky enough to have the same experience this week. The way I solved it was changing all occurrences of Apparently Forms was expecting
|
I have updated OP with additional details, sorry for not been more clear. |
@markbates thoughts on a |
Judging from v0.15.5 release notes this looks fixed. |
Based on the workaround from @paganotoni I was able to make it work. Beside of changing all occurrences of
Updating to v0.15.5 and executing |
The latest tags version (v3.1.0) does not depend on any |
It looks like validation errors for forms are broken in v0.15.4 due to some package changes.
New versions of
github.com/gobuffalo/tags
usegithub.com/gobuffalo/validate/v3
while a project created withbuffalo new coke
is pulling a old none v3 packagegithub.com/gobuffalo/validate
.Which then means you end up with diffrent types resulting in the reflection not working here:
https://github.com/gobuffalo/tags/blob/master/form/form_for.go#L58-L69
Steps to Reproduce the Problem
Create a new v0.15.4 project and add a model with validation.
Eg:
buffalo plugins install github.com/gobuffalo/buffalo-auth
Run locally
buffalo dev
Place data in the form that fails server side validation.
Expected Behavior
Validation failures shown on page.
Actual Behavior
No reasons show on page.
Log contains
Unexpected errors type *validate.Errors, please
Thanks.
The text was updated successfully, but these errors were encountered: