mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Upgrade json-schema to allow v3 and upgrade other deps
This commit is contained in:
parent
14c77130e8
commit
20ee689bb4
3 changed files with 38 additions and 32 deletions
|
@ -92,7 +92,14 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
|
|||
$validator->check(json_decode($json), $schema);
|
||||
|
||||
if (!$validator->isValid()) {
|
||||
return $validator->getErrors();
|
||||
$errors = $validator->getErrors();
|
||||
|
||||
// remove justinrainbow/json-schema 3.0 props so it works with all versions
|
||||
foreach ($errors as &$err) {
|
||||
unset($err['pointer']);
|
||||
}
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue