Validating input in perl
Do not use, modify, or distribute the Package, if you do not accept this license.If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.For example, if we use "eq" rule with input: What about the test suite? If the value is present but it is not a list the error code will be 'FORMAT_ERROR' Example: Only 'i' flag is currently required by specification.The test suite is stored in JSON format, therefore we can rely only on types that are supported by JSON. Be aware that regular expressions can be language dependent. This rule is experimental as it requires more strict semantics.
Validation rules will be applyed for each array element.Now you can write that becomes one_of('val1', 'val2').The main problem with it that you do not know how many arguments will be passed to 'one_of'.Error code: depends on nested validators Example: Allows you to describe validation rules for list of objects.Validation rules will be applyed for each array element. Or "FORMAT_ERROR" in case of receiving data not suitable for validation.