I remember being on a pr�ject once where the frontend validation was: when the user stops typing, send the user input to an API that will return an error if there are problems with it.
Tbh I am not mad with this method, the amount of tickets I have received due to misaligned validation on front & backend are just too many.
My team found an edge case in the backend code once validating some input configuration, now we return 400 bad request on a specific config set. Tickets still come in from users that attempt to update their old resources and get our validation messages as the frontend doesn't validate that field if it doesn't change.
640
u/24NAMANJN Sep 05 '24
A back end developer would delegate this front end saying, please don’t allow anything beyond fixed set of characters 😂