shakacode / re-formality

Form validation tool for reason-react
https://re-formality.now.sh
MIT License
244 stars 36 forks source link

Fix multiple dependent fields #101

Closed steinararnason closed 3 years ago

steinararnason commented 3 years ago

This was the initial error the new test produced.

  We've found a bug for you!
  ./test/cases/Ok__FieldWithSyncValidatorAndTwoDependentFieldsWithSyncValidators.re:3:25

  1 │ module Form = [%form
  2 │   type input = {
  3 │     a: [@field.deps (b, c)] string,
  4 │     b: string,
  5 │     c: string,

  Field `c` is already declared as a dependency for this field
alex35mil commented 3 years ago

@steinararnason Thank you!

alex35mil commented 3 years ago

Released 4.0.0-beta.13