mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-05-03 04:48:11 +02:00
Aligning error output to use json_encode() instead of print_r() when displaying objects or arrays in error message.
This commit is contained in:
parent
37810e922e
commit
dd80ff0585
@ -41,6 +41,6 @@ class EnumConstraint extends Constraint
|
||||
}
|
||||
}
|
||||
|
||||
$this->addError($path, "Does not have a value in the enumeration " . print_r($schema->enum, true), 'enum', array('enum' => $schema->enum,));
|
||||
$this->addError($path, "Does not have a value in the enumeration " . json_encode($schema->enum), 'enum', array('enum' => $schema->enum,));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user