parent
ddc1d377d7
commit
e172cd81a1
|
@ -154,8 +154,7 @@ class JsonFile
|
||||||
|
|
||||||
if ($schema === self::LAX_SCHEMA) {
|
if ($schema === self::LAX_SCHEMA) {
|
||||||
$schemaData->additionalProperties = true;
|
$schemaData->additionalProperties = true;
|
||||||
$schemaData->properties->name->required = false;
|
$schemaData->required = array();
|
||||||
$schemaData->properties->description->required = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$validator = new Validator();
|
$validator = new Validator();
|
||||||
|
|
|
@ -21,10 +21,10 @@ class JsonValidationException extends Exception
|
||||||
{
|
{
|
||||||
protected $errors;
|
protected $errors;
|
||||||
|
|
||||||
public function __construct($message, $errors = array())
|
public function __construct($message, $errors = array(), \Exception $previous = null)
|
||||||
{
|
{
|
||||||
$this->errors = $errors;
|
$this->errors = $errors;
|
||||||
parent::__construct($message);
|
parent::__construct($message, 0, $previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getErrors()
|
public function getErrors()
|
||||||
|
|
Loading…
Reference in New Issue