mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-11 10:06:09 +03:00
Merge pull request #1031 from ToGo101/bugfix/NoOverridesIfAlreadySet
Bugfix/no overrides if already set
This commit is contained in:
commit
261830f1f9
@ -34,7 +34,10 @@ final class RouteMetadataDescriber implements RouteDescriberInterface
|
||||
|
||||
$parameter = $operation->getParameters()->get($pathVariable, 'path');
|
||||
$parameter->setRequired(true);
|
||||
$parameter->setType('string');
|
||||
|
||||
if (null === $parameter->getType()) {
|
||||
$parameter->setType('string');
|
||||
}
|
||||
|
||||
if (isset($requirements[$pathVariable])) {
|
||||
$parameter->setFormat($requirements[$pathVariable]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user