Validating the url
If the validation rules pass, your code will keep executing normally; however, if validation fails, an exception will be thrown and the proper error response will automatically be sent back to the user.
The goal of is to provide a cross framework and cross language way of validating data.
The validation constraints can be declared in JSON and shared between clients and the server. One thing that is a bit unorthodox is that most validators will consider undefined values (,) valid values.
Sometimes you may wish to stop running validation rules on an attribute after the first validation failure.
To do so, assign the So, what if the incoming request parameters do not pass the given validation rules?