mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Update swagger-support.md
This commit is contained in:
parent
af5cb3dd76
commit
ee0496af65
@ -342,7 +342,9 @@ class SwaggerFormatter implements FormatterInterface
|
|||||||
switch ($prop['actualType']) {
|
switch ($prop['actualType']) {
|
||||||
case DataTypes::ENUM:
|
case DataTypes::ENUM:
|
||||||
$type = 'string';
|
$type = 'string';
|
||||||
$enum = array_keys(json_decode($prop['format'], true));
|
if (isset($prop['format'])) {
|
||||||
|
$enum = array_keys(json_decode($prop['format'], true));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DataTypes::MODEL:
|
case DataTypes::MODEL:
|
||||||
|
@ -83,7 +83,7 @@ The routes registered with the method above will read your `@ApiDoc` annotation
|
|||||||
php app/console api:swagger:dump --all app/Resources/swagger-docs
|
php app/console api:swagger:dump --all app/Resources/swagger-docs
|
||||||
```
|
```
|
||||||
|
|
||||||
The above command will dump JSON files under the `app/Resources/swagger-docs` directory (relative to your project root), and you can now process or server the files however you want. (If the destination defaults to the project root if not specified.)
|
The above command will dump JSON files under the `app/Resources/swagger-docs` directory (relative to your project root), and you can now process or server the files however you want. The destination defaults to the project root if not specified.
|
||||||
|
|
||||||
####Selective dumps
|
####Selective dumps
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user