Checks if the input matches the schema. As this is an assertion function, it can be used as a type guard.
The schema to be used.
The input to be tested.
Checks if the input matches the schema. As this is an assertion function, it can be used as a type guard.