diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index 602230f..3e602e3 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -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 .= '