used the same schema as php-reflect to validate json config file
add justinrainbow/json-schema dependency to validate an optional JSON schema