contracts/common.md#principled-implementation The four validators share the conversion in validate and differ in the message they attach, which names the URL parameter or states that the query, body, or headers do not follow the promised type.
contracts/common.md#clear-and-simple-design One function returning the four validators as an object, so a generated simulator has one import.
Creates the validators of one simulated route:
param(name),query,body, andheaders.Each validator takes the closure that performs the typia assertion. A failed assertion throws an
HttpErrorwith status 400 and a JSON body; any other error is rethrown as it is.