mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Ignore path without valid methods
This commit is contained in:
parent
7aa4c829b7
commit
eb7e6b6803
@ -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…
x
Reference in New Issue
Block a user