Cli generator name option, replaces 'language' options in CLI and Maven Plugin (#57)

This commit is contained in:
Jim Schubert
2018-05-22 23:41:19 -04:00
committed by Jérémie Bresson
parent b73ab0260e
commit 27426f7b52
423 changed files with 710 additions and 493 deletions

View File

@@ -85,10 +85,16 @@ New:
</dependency>
```
### Changes in Maven Plugin
OpenAPI Generator 3.0.0 has introduced `<generatorName>` and deprecated `<language>`, because this refers to generator names which embed more than just "language".
If both options are present, you'll be presented with an error. If only `<language>` is provided, you'll be presented instructions for updating to the new config.
### New generators names
When you run OpenAPI Generator, you need to select a target language (`-l` option in the cli).
When you run OpenAPI Generator, you need to select a target generator (`-g` option in the cli).
All languages of `swagger-codegen` have been migrated to `openapi-generator`, but some names were changed, in order to be more consistent.
| name in `swagger-codegen` | name in `openapi-generator` |
@@ -106,6 +112,7 @@ All languages of `swagger-codegen` have been migrated to `openapi-generator`, bu
| `ze-ph` | `php-ze-ph` |
| `nancyfx` | `csharp-nancyfx` |
We provide a temporary mapping in code for these old values. You'll receive a warning with instructions to migrate to the new names.
### New parameters name