[maven-plugin] fix strictSpec parameter without alias (#3095)

* Revert "[maven-plugin] fix strictSpec parameter (#3071)"

This reverts commit 8c9a1512ae824d35866375eb69ddd085309d0251.

* [maven-plugin] fix strictSpec parameter without alias
This commit is contained in:
Jérémie Bresson 2019-06-05 14:21:51 +02:00 committed by Jim Schubert
parent 4e9d226443
commit ad06496887

View File

@ -244,8 +244,8 @@ public class CodeGenMojo extends AbstractMojo {
/**
* To treat a document strictly against the spec.
*/
@Parameter(name = "strictSpecBehavior", alias = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
private Boolean strictSpecBehavior;
@Parameter(name = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
private Boolean strictSpec;
/**
* To generate alias (array, map) as model
@ -471,8 +471,8 @@ public class CodeGenMojo extends AbstractMojo {
configurator.setValidateSpec(!skipValidateSpec);
}
if (strictSpecBehavior != null) {
configurator.setStrictSpecBehavior(strictSpecBehavior);
if (strictSpec != null) {
configurator.setStrictSpecBehavior(strictSpec);
}
if (logToStderr != null) {