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.'", * name="'.$name.'",
* in="'.$in.'", * in="'.$in.'",
* description="'.$description.'", * description="'.$description.'",
* required='.(array_key_exists($name, $apiDoc->getRequirements()) ? 'true' : 'false').', * required='.(array_key_exists($name, $apiDoc->getRequirements()) ? 'true' : 'false');
* type="'.$this->determineDataType($parameter).'"';
if ('POST' !== $apiDoc->getMethod()) { if ('POST' !== $apiDoc->getMethod()) {
$annotation .= ', $annotation .= ',
* @SWG\Schema(type="'.$this->determineDataType($parameter).'")'; * @SWG\Schema(type="'.$this->determineDataType($parameter).'")';
} else {
$annotation .= ',
* type="'.$this->determineDataType($parameter).'"';
} }
$annotation .= ' $annotation .= '