cds-snc / cds-snc/platform-forms-client

Potentially conflicting "number" validation rules

Open
#7,089 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.