getErrors()
getErrors() : array
returns all collected errors
The Constraints Interface
addError(\JsonSchema\Entity\JsonPointer|null $path = null, string $message, string $constraint = '', array $more = null)
adds an error
| \JsonSchema\Entity\JsonPointer|null | $path | |
| string | $message | |
| string | $constraint | the constraint/rule that is broken, e.g.: 'minLength' |
| array | $more | more array elements to add to the error |
check(mixed $value, mixed $schema = null, \JsonSchema\Entity\JsonPointer|null $path = null, mixed $i = null)
invokes the validation of an element
| mixed | $value | |
| mixed | $schema | |
| \JsonSchema\Entity\JsonPointer|null | $path | |
| mixed | $i |