update command

This commit is contained in:
Guilhem Niot 2019-03-09 18:18:05 +01:00
parent 42c08fa681
commit 0bd54ea99a

View File

@ -118,12 +118,14 @@ class SwaggerDocblockConvertCommand extends ContainerAwareCommand
* name="'.$name.'",
* in="'.$in.'",
* description="'.$description.'",
* required='.(array_key_exists($name, $apiDoc->getRequirements()) ? 'true' : 'false').',
* type="'.$this->determineDataType($parameter).'"';
* required='.(array_key_exists($name, $apiDoc->getRequirements()) ? 'true' : 'false');
if ('POST' !== $apiDoc->getMethod()) {
$annotation .= ',
* @SWG\Schema(type="'.$this->determineDataType($parameter).'")';
} else {
$annotation .= ',
* type="'.$this->determineDataType($parameter).'"';
}
$annotation .= '