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