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
Is your feature request related to a problem? Please describe.
When a request is made to an endpoint ( consider /create ), and the request body does not conform to the expected request, the response should have have a suitable custom message.
Ex:
Send a request to /create ( for which username and password are mandatory ), without the password field. The response should have a message like - "Missing parameter: Password".
Send a request to /create ( same rule as above ), but the email is not valid ( ex: 'blahblah' ). The response should have a valid message like - "Invalid email".
Describe the solution you'd like
For the validator object, add suitable message for each condition. Check if it's possible to do so.
Describe alternatives you've considered
Handle this validation in the front end.
Teachability, Documentation, Adoption, Migration Strategy
NA
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
When a request is made to an endpoint ( consider
/create
), and the request body does not conform to the expected request, the response should have have a suitable custom message.Ex:
/create
( for which username and password are mandatory ), without the password field. The response should have a message like - "Missing parameter: Password"./create
( same rule as above ), but the email is not valid ( ex: 'blahblah' ). The response should have a valid message like - "Invalid email".Describe the solution you'd like
For the validator object, add suitable message for each condition. Check if it's possible to do so.
Describe alternatives you've considered
Handle this validation in the front end.
Teachability, Documentation, Adoption, Migration Strategy
NA
The text was updated successfully, but these errors were encountered: