Implementation | Pros | Cons |
---|
Java Util Package | - More consistent use of code from this library across CPS
- Easier to write individual unit tests for.
- Can throw more specific error message if validation doesn't match.
| |
Spring/OpenApi keyword | | - Inconsistent use of one validation library across code.
- Harder to write individual unit tests for.
|
Apache Commons Validator | - Similar to Java Util Library.
| - Adding extra dependency for no further advantage.
|