From 8898ac3aa8e6e5f292df697222bc8e155a9454f2 Mon Sep 17 00:00:00 2001 From: Ionut Enache Date: Sat, 9 Dec 2023 12:43:29 +0200 Subject: [PATCH 1/2] Fix tests by removing the missing Nexmo/api-specification repository --- tests/spec/OpenApiTest.php | 16 ---------------- 1 file changed, 16 deletions(-) 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 [ From 100965c87d203fb19edcefab0df5bbeb6ff9c36d Mon Sep 17 00:00:00 2001 From: Ionut Enache Date: Sat, 9 Dec 2023 12:44:10 +0200 Subject: [PATCH 2/2] Update the version of the symfony/yaml package to version ^7 --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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": {