Skip to content

Add reference normalize to path parameters on top level #99

Add reference normalize to path parameters on top level

Add reference normalize to path parameters on top level #99

Triggered via pull request July 24, 2024 14:02
Status Failure
Total duration 1m 14s
Artifacts

build.yml

on: pull_request
Test if tests pass in the Docker container
26s
Test if tests pass in the Docker container
Matrix: Tests with coverage and PR Comments
Matrix: PHP Tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 30 warnings
PHP Tests (8.1, latest, true)
Process completed with exit code 2.
PHP Tests (8.1, lowest)
The job was canceled because "_8_1_latest_true" failed.
PHP Tests (8.1, lowest)
The operation was canceled.
Tests with coverage and PR Comments (8.3)
Process completed with exit code 1.
PHP Tests (8.3, latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Tests (8.3, latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests (8.1, latest, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Tests (8.1, latest, true)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests (8.2, latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Tests (8.2, latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test if tests pass in the Docker container
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test if tests pass in the Docker container
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests with coverage and PR Comments (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v1.0.15. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests with coverage and PR Comments (8.3)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v1.0.15. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L36
Escaped Mutant for Mutator "InstanceOf_": @@ @@ foreach ($path->parameters as $parameterIndex => $parameter) { /** @var array<int, Parameter|Reference> $allParameters */ $allParameters = $path->parameters; - if ($parameter instanceof Reference) { + if (true) { $allParameters[$parameterIndex] = $this->normalizeReference($parameter, $refFileCollection); } else if ($parameter instanceof Parameter) { $allParameters[$parameterIndex] = $this->normalizeParameters($parameter, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L60
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($operation->requestBody instanceof RequestBody) { foreach ($operation->requestBody->content as $contentType => $content) { $allRequestBodyContent = $operation->requestBody->content; - if (!$content->schema instanceof Schema) { + if (!true) { continue; } $allRequestBodyContent[$contentType]->schema = $this->normalizeProperties($content->schema, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L94
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($responseContent->schema instanceof Reference) { $responseContent->schema = $this->normalizeReference($responseContent->schema, $refFileCollection); } - if ($responseContent->schema instanceof Schema) { + if (true) { $schemaProperties = $responseContent->schema->properties ?? []; foreach ($schemaProperties as $propertyName => $property) { if (!$property instanceof Reference) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L134
Escaped Mutant for Mutator "NotIdentical": @@ @@ } } } - if ($openApiDefinition->components !== null) { + if ($openApiDefinition->components === null) { foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] ?? $openApiDefinition->components->schemas as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "Foreach_": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L145
Escaped Mutant for Mutator "Coalesce": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] ?? $openApiDefinition->components->responses as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L145
Escaped Mutant for Mutator "Foreach_": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!true) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!false) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/FileHandling/RegexFinder.php#L61
Escaped Mutant for Mutator "UnwrapArrayFilter": @@ @@ }); $recursiveIterator = new RecursiveIteratorIterator($regexIterator); $matches = array_values(iterator_to_array($recursiveIterator)); - assert(array_filter($matches, static fn(mixed $input): bool => is_string($input)) === $matches); + assert($matches === $matches); return $matches; } }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L36
Escaped Mutant for Mutator "InstanceOf_": @@ @@ foreach ($path->parameters as $parameterIndex => $parameter) { /** @var array<int, Parameter|Reference> $allParameters */ $allParameters = $path->parameters; - if ($parameter instanceof Reference) { + if (true) { $allParameters[$parameterIndex] = $this->normalizeReference($parameter, $refFileCollection); } else if ($parameter instanceof Parameter) { $allParameters[$parameterIndex] = $this->normalizeParameters($parameter, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L60
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($operation->requestBody instanceof RequestBody) { foreach ($operation->requestBody->content as $contentType => $content) { $allRequestBodyContent = $operation->requestBody->content; - if (!$content->schema instanceof Schema) { + if (!true) { continue; } $allRequestBodyContent[$contentType]->schema = $this->normalizeProperties($content->schema, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L94
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($responseContent->schema instanceof Reference) { $responseContent->schema = $this->normalizeReference($responseContent->schema, $refFileCollection); } - if ($responseContent->schema instanceof Schema) { + if (true) { $schemaProperties = $responseContent->schema->properties ?? []; foreach ($schemaProperties as $propertyName => $property) { if (!$property instanceof Reference) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L134
Escaped Mutant for Mutator "NotIdentical": @@ @@ } } } - if ($openApiDefinition->components !== null) { + if ($openApiDefinition->components === null) { foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] ?? $openApiDefinition->components->schemas as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "Foreach_": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L145
Escaped Mutant for Mutator "Coalesce": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] ?? $openApiDefinition->components->responses as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L145
Escaped Mutant for Mutator "Foreach_": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!true) { continue; } /** @var array<string, Response> $allSchemas */