mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +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']) {
|
||||
case DataTypes::ENUM:
|
||||
$type = 'string';
|
||||
if (isset($prop['format'])) {
|
||||
$enum = array_keys(json_decode($prop['format'], true));
|
||||
}
|
||||
break;
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user