Problem:
CRECUST.cbl does not validate phoneNumber, address fields, or customerStatus. Only title and dateofBirth are enforced. This makes input validation difficult for the Post/customer or create customer API. Empty fields can be entered.
Proposed Solution:
Add COBOL side validation to CRECUST.cbl
Length checks on firstName, lastName, phoneNumber, addressLines, city, country, postalCode
Enum/value check on customerStatus
Problem:
CRECUST.cbl does not validate phoneNumber, address fields, or customerStatus. Only title and dateofBirth are enforced. This makes input validation difficult for the Post/customer or create customer API. Empty fields can be entered.
Proposed Solution:
Add COBOL side validation to CRECUST.cbl
Length checks on firstName, lastName, phoneNumber, addressLines, city, country, postalCode
Enum/value check on customerStatus