From ad06496887480ff8299a2fbbb1756f98a4e602fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Wed, 5 Jun 2019 14:21:51 +0200 Subject: [PATCH] [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 --- .../java/org/openapitools/codegen/plugin/CodeGenMojo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java index 91d76333b10..0414bb1dc87 100644 --- a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java +++ b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java @@ -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) {