JSON Validation Engine written in PHP
JSONValidator is an abstract class that validates JSON based on the schema defined in the child class.
Validation can be done via:
- inline closure functions in the schema itself
- mapped functions in the parent class ValidationMapping array
- mapped functions can be chained together using the ">" character
Supports Validation for:
- Required Values
- Optional Values
- Conditional Values :
- If a specific field is present validate a specific scheme
Pre and Post operations
See example(s)!