mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
Ignore path without valid methods
This commit is contained in:
parent
7aa4c829b7
commit
eb7e6b6803
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ final class SwaggerPhpDescriber implements ModelRegistryAwareInterface
|
|||
$httpMethods = array_map('strtolower', $httpMethods);
|
||||
$httpMethods = array_intersect($httpMethods, Swagger::$METHODS);
|
||||
|
||||
if (empty($httpMethods)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
yield $method => [$path, $httpMethods];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue