diff --git a/src/Generator.php b/src/Generator.php index 16d61acd0..ab804aaf4 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -275,10 +275,10 @@ public function getProcessorPipeline(): Pipeline new Processors\MergeJsonContent(), new Processors\MergeXmlContent(), new Processors\OperationId(), - new Processors\AugmentTags(), new Processors\CleanUnmerged(), new Processors\PathFilter(), new Processors\CleanUnusedComponents(), + new Processors\AugmentTags(), ]); } diff --git a/tests/Fixtures/SurplusTag.php b/tests/Fixtures/SurplusTag.php new file mode 100644 index 000000000..0ac32cc63 --- /dev/null +++ b/tests/Fixtures/SurplusTag.php @@ -0,0 +1,25 @@ + ['paths' => ['#^/hello/#']], + 'cleanUnusedComponents' => ['enabled' => true], + ]; + $analysis = $this->analysisFromFixtures(['SurplusTag.php'], static::processors(), null, $config); + + $this->assertCount(1, $analysis->openapi->tags); + } +}