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
iota results in missing parameter #95
Comments
I know, we are working in a completely new validation system |
@MattNewberry check out the new validation options: http://godoc.org/gopkg.in/bluesuncorp/validator.v5 Event struct {
Type int `bson:"type" json:"type" binding:"min=0,max=2"`
Timestamp string `bson:"timestamp" json:"timestamp" binding:"required"`
} how does it sounds? |
Nicely done with the new form validation. I can't test it any time soon, but do you think this will have any noticeable performance impact on simple forms? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Synopsis:
When using
iota
to default a const group to a 0 value, and sending a 0 value via a JSON payload, the binding process fails believing the required value is missing.Schema:
JSON:
Response:
The text was updated successfully, but these errors were encountered: