function Constraint::checkObject
Validates an object
Parameters
mixed $value:
mixed $schema:
JsonPointer|null $path:
mixed $properties:
mixed $additionalProperties:
mixed $patternProperties:
1 call to Constraint::checkObject()
- UndefinedConstraint::validateTypes in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ UndefinedConstraint.php - Validates the value against the types
File
-
vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ Constraint.php, line 86
Class
- Constraint
- The Base Constraints, all Validators should extend this class
Namespace
JsonSchema\ConstraintsCode
protected function checkObject(&$value, $schema = null, ?JsonPointer $path = null, $properties = null, $additionalProperties = null, $patternProperties = null, $appliedDefaults = array()) {
$validator = $this->factory
->createInstanceFor('object');
$validator->check($value, $schema, $path, $properties, $additionalProperties, $patternProperties, $appliedDefaults);
$this->addErrors($validator->getErrors());
}