1
0
Fork 0
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:
Jordi Boggiano 2016-09-14 18:06:37 +02:00
parent 14c77130e8
commit 20ee689bb4
3 changed files with 38 additions and 32 deletions

View file

@ -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;