mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
since a path variable must be required, change back
This commit is contained in:
parent
fce21e78b0
commit
69169b0457
1 changed files with 2 additions and 3 deletions
|
@ -33,9 +33,8 @@ final class RouteMetadataDescriber implements RouteDescriberInterface
|
|||
}
|
||||
|
||||
$parameter = $operation->getParameters()->get($pathVariable, 'path');
|
||||
if (null === $parameter->getRequired()) {
|
||||
$parameter->setRequired(true);
|
||||
}
|
||||
$parameter->setRequired(true);
|
||||
|
||||
if (null === $parameter->getType()) {
|
||||
$parameter->setType('string');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue