cds-snc / cds-snc/platform-forms-client
Potentially conflicting "number" validation rules
Open
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 85
Description
## Description
In #5063, it is possible to create conflicting validation rules. We might want to prevent users from getting into a weird state?
For example:
- Can be negative, but range set to a minimum value of 0
- Can be multiple decimals, but digits set to a max less than or a min more than
- Can be min-max digits, but min-max values
- Can be multiple decimals, but resets to 2 with currency
Contributor guide
Assessment
This issue has not been assessed yet.