function Constraint::checkNumber
Checks a number element
Parameters
mixed $value:
mixed $schema:
JsonPointer $path:
mixed $i:
1 call to Constraint::checkNumber()
- 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 152
Class
- Constraint
- The Base Constraints, all Validators should extend this class
Namespace
JsonSchema\ConstraintsCode
protected function checkNumber($value, $schema = null, ?JsonPointer $path = null, $i = null) {
$validator = $this->factory
->createInstanceFor('number');
$validator->check($value, $schema, $path, $i);
$this->addErrors($validator->getErrors());
}