Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration Guide: add "Validate spec on generation by default" section #683

Merged
merged 2 commits into from
Jul 30, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add "Validate spec on generation by default"
  • Loading branch information
jmini authored Jul 30, 2018
commit f05ea89c91bddb6f573279a0106a4ff72857e00b
7 changes: 7 additions & 0 deletions docs/migration-guide.adoc
Original file line number Diff line number Diff line change
@@ -17,6 +17,13 @@ Version `3.2.0` is a minor version of OpenAPI-Generator, in comparison to `3.1.x
The default value of some options might change.
Projects relying on generated code might need to be adapted.

==== Validate spec on generation by default

The default is to validate the spec during generation. If the spec has errors,
we will output errors as well as warnings to the user.

The option can be disabled by passing `false` to `validateSpec` (for the Maven or Gradle plugin) or with `--skip-validate-spec` (CLI).

==== Model (all languages)

In `CodegenModel` and in `CodegenOperation` we use now our own class `org.openapitools.codegen.CodegenDiscriminator` instead of `io.swagger.v3.oas.models.media.Discriminator`.