mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
Cli generator name option, replaces 'language' options in CLI and Maven Plugin (#57)
This commit is contained in:
committed by
Jérémie Bresson
parent
b73ab0260e
commit
27426f7b52
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user