MediaWiki REL1_33
|
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, $result, and and().
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\format().
|
static |
Definition at line 178 of file AvroValidator.php.
|
static |
Definition at line 170 of file AvroValidator.php.
References and().
|
static |
Definition at line 174 of file AvroValidator.php.