mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
since a path variable must be required, change back
This commit is contained in:
parent
fce21e78b0
commit
69169b0457
@ -33,9 +33,8 @@ final class RouteMetadataDescriber implements RouteDescriberInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$parameter = $operation->getParameters()->get($pathVariable, 'path');
|
$parameter = $operation->getParameters()->get($pathVariable, 'path');
|
||||||
if (null === $parameter->getRequired()) {
|
$parameter->setRequired(true);
|
||||||
$parameter->setRequired(true);
|
|
||||||
}
|
|
||||||
if (null === $parameter->getType()) {
|
if (null === $parameter->getType()) {
|
||||||
$parameter->setType('string');
|
$parameter->setType('string');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user