Open nus-se-script opened 1 year ago
This bug report would be accepted, however, it would be a documentation bug instead as the UG was not specific enough in stating that the rationale for eight digits is because we only want Singapore phone numbers as we are catering only for Singapore customers with Singapore phone number.
Furthermore, our examples all state Singapore addresses and Singapore phone numbers, thus, we always had it in mind that we the customers are from Singapore but did not state it down explicitly.
--
Phone numbers, as specified in the UG, can only be eight digits. Any attempt to add a phone number not consisting of eight digits, for instance:
customer add --name Name --phone 123456789 --email abc@def --address address
...is met with the error message:
However, phone numbers may not be eight digits long, especially overseas. Hence, is this overzealous input validation? Perhaps a warning could be displayed instead of blocking the input entirely.
[original: nus-cs2103-AY2324S1/pe-interim#758] [original labels: severity.Low type.FeatureFlaw]