function BaseConstraint::getErrors
5 calls to BaseConstraint::getErrors()
- BaseConstraint::isValid in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ BaseConstraint.php - BaseConstraint::numErrors in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ BaseConstraint.php - CollectionConstraint::validateItems in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ CollectionConstraint.php - Validates the items
- UndefinedConstraint::validateCommonProperties in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ UndefinedConstraint.php - Validates common properties
- UndefinedConstraint::validateOfProperties in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ UndefinedConstraint.php - Validate allOf, anyOf, and oneOf properties
File
-
vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ BaseConstraint.php, line 81
Class
- BaseConstraint
- A more basic constraint definition - used for the public interface to avoid exposing library internals.
Namespace
JsonSchema\ConstraintsCode
public function getErrors($errorContext = Validator::ERROR_ALL) {
if ($errorContext === Validator::ERROR_ALL) {
return $this->errors;
}
return array_filter($this->errors, function ($error) use ($errorContext) {
if ($errorContext & $error['context']) {
return true;
}
});
}