You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to validate all user input. We have specific validation methods for each type of user input.
In the facility service, some of the methods are created, but the validation is not filled out yet. Feel free to add/update validation methods as needed
Requirements
Come up with the essential list of rules for each user input field. (example: nameEn should be less than 64 chars.)
use your best judgement and practical knowledge of rules. Consider what is a realistic min/max value, should it be null/undefined, negative/positive numbers,
when comparing strings, we should use .toLowerCase() to ignore casing mismatches.
Let's update the values that are saved to always be lowercase as well.
Write up the rules and add missing codes. (these are used by the client-side to determine what error message to show the user based on their localization)
Create a new facilityValidation file in validation folder
Summary
We want to validate all user input. We have specific validation methods for each type of user input.
In the facility service, some of the methods are created, but the validation is not filled out yet. Feel free to add/update validation methods as needed
Requirements
nameEn
should be less than 64 chars.).toLowerCase()
to ignore casing mismatches.Dependencies
The text was updated successfully, but these errors were encountered: