Skip to content

Validation for compound fields #21

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

Open
mstn opened this issue Jul 28, 2017 · 0 comments
Open

Validation for compound fields #21

mstn opened this issue Jul 28, 2017 · 0 comments

Comments

@mstn
Copy link
Contributor

mstn commented Jul 28, 2017

For example, total is AmountInput

input Order {
total: AmountInput!
}

At the moment it fails silently, because total is not a field and redux-form does not seem to apply validation rules to field sections. Need further investigations.

If total is required, it should be at least the empty object {}. It should not require that all the subfields are required, but only those actually required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants