Skip to main content

shared/src/utils/profile-validation

Variables

VariableDescription
hasMinLengthValidates that a field meets the minimum length requirement
hasSelectionsValidates array has at least one selection and no duplicates
isAlphaOnlyValidates that a field contains only alphabetic characters (including accented characters)
isInRangeValidates numeric value is within range
isRequiredValidates that a field contains a non-empty value
isValidDateValidates that a date string matches the specified format and represents a valid date
isValidEmailValidates email format
isWithinAgeRangeValidates that a birth date results in an age within the specified range
validateAgeValidates a numeric age value
validateDateValidates a date field with age restrictions
validateNameValidates a name field with standard requirements
validateParentEmailValidates parent email (conditional based on age)