Validation
tab, located at the topmost action in a route, enables you to validate JSON data within incoming API requests. If the body of the request fails to align with the specified validation schema, the request will be immediately terminated.
number
data type. The required
key in the validation schema specifies whether a particular field is mandatory or optional and required
can be set for all data types:
string
data type. You can specify additional validation rules, such as a regular expression pattern or minimum and maximum length constraints:
object
data type. The objectValidation
key can then be used to further specify the expected schema for each nested property within the object:
list
data type. You can specify minimum and maximum length constraints, as well as validation rules for each item within the list: