diff --git a/composer.json b/composer.json index 46cb26f2..d7f812a1 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require": { "php": ">=7.1.0", "ext-json": "*", - "symfony/yaml": "^3.4 || ^4 || ^5 || ^6", + "symfony/yaml": "^3.4 || ^4 || ^5 || ^6 || ^7", "justinrainbow/json-schema": "^5.2" }, "require-dev": { @@ -29,7 +29,6 @@ "oai/openapi-specification": "3.0.3", "mermade/openapi3-examples": "1.0.0", "apis-guru/openapi-directory": "1.0.0", - "nexmo/api-specification": "1.0.0", "phpstan/phpstan": "^0.12.0" }, "conflict": { diff --git a/tests/spec/OpenApiTest.php b/tests/spec/OpenApiTest.php index 20b568ed..87b5c025 100644 --- a/tests/spec/OpenApiTest.php +++ b/tests/spec/OpenApiTest.php @@ -154,26 +154,10 @@ public function specProvider() $it->next(); } - // examples from https://github.com/Nexmo/api-specification/tree/master/definitions - $nexmoExamples = []; - /** @var $it RecursiveDirectoryIterator|RecursiveIteratorIterator */ - $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__ . '/../../vendor/nexmo/api-specification/definitions')); - $it->rewind(); - while($it->valid()) { - if ($it->getExtension() === 'yml' - && strpos($it->getSubPath(), 'common') === false - && $it->getBasename() !== 'voice.v2.yml' // contains invalid references - ) { - $nexmoExamples[] = $it->key(); - } - $it->next(); - } - $all = array_merge( $oaiExamples, $mermadeExamples, $apisGuruExamples, - $nexmoExamples ); foreach($all as $path) { yield [