mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
update command
This commit is contained in:
parent
42c08fa681
commit
0bd54ea99a
@ -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 .= '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user