da65d0decde1e11e56dd61476ccded4ac4a2fc1a
goals_criteria::fromJson with input sanitization, deduplication, and validation
- Add robust validation for JSON input, including error handling for malformed or invalid data. - Sanitize and validate all fields (`type`, `target`, `label`, `start`, `end`) with additional constraints like trimming, length limits, and proper date handling. - Implement deduplication for `users`, `departments`, and `products` to ensure unique and valid entries. - Ensure `end` date does not precede `start` by swapping when necessary.
Description
Staging repo for api (CI + promotion to GitHub)
40 MiB
Languages
PHP
93.5%
HTML
3.5%
JavaScript
1.9%
Shell
0.4%
Python
0.3%
Other
0.3%