MediaWiki
1.32.5
|
Generate error strings for data that doesn't match the specified Avro schema. More...
Static Public Member Functions | |
static | getErrors (AvroSchema $schema, $datum) |
static | outOfRange ( $min, $max, $datum) |
static | typeOf ( $datum) |
static | wrongType ( $expected, $datum) |
Generate error strings for data that doesn't match the specified Avro schema.
This is very similar to AvroSchema::is_valid_datum(), but returns error messages instead of a boolean.
Definition at line 30 of file AvroValidator.php.
|
static |
AvroSchema | $schema | The rules to conform to. |
mixed | $datum | The value to validate against $schema. |
Definition at line 38 of file AvroValidator.php.
References $name, as, outOfRange(), and wrongType().
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\format(), and AvroValidatorTest\testGetErrors().
|
static |
Definition at line 178 of file AvroValidator.php.
Referenced by getErrors().
|
static |
Definition at line 170 of file AvroValidator.php.
Referenced by wrongType().
|
static |