Skip to content

Commit e2555fb

Browse files
authored
Add documentation for CodegenDiscriminator (OpenAPITools#587)
1 parent e53a58e commit e2555fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/migration-guide.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ Another approach to find breaking changes is to look at issue and pull requests
1111
* link:https://github.com/OpenAPITools/openapi-generator/labels/Breaking%20change%20%28with%20fallback%29[Breaking change (with fallback)]
1212
* link:https://github.com/OpenAPITools/openapi-generator/labels/Breaking%20change%20%28without%20fallback%29[Breaking change (without fallback)]
1313
14+
=== From 3.1.x to 3.2.0
15+
16+
Version `3.2.0` is a minor version of OpenAPI-Generator, in comparison to `3.1.x` it contains some breaking changes, but with the possibility to fallback to the old behavior.
17+
The default value of some options might change.
18+
Projects relying on generated code might need to be adapted.
19+
20+
==== Model (all languages)
21+
22+
In `CodegenModel` and in `CodegenOperation` we use now our own class `org.openapitools.codegen.CodegenDiscriminator` instead of `io.swagger.v3.oas.models.media.Discriminator`.
23+
24+
For the templates, this is not an API change, because the same values are available.
25+
26+
If you have your own `Codegen` class (to support your own generator for example) then you might get some compile error due to the change.
27+
1428
=== From 3.0.x to 3.1.0
1529

1630
Version `3.1.0` is the first minor version of OpenAPI-Generator, in comparison to `3.0.3` it contains some breaking changes, but with the possibility to fallback to the old behavior.

0 commit comments

Comments
 (0)