Skip to content

Commit ad06496

Browse files
jminijimschubert
authored andcommitted
[maven-plugin] fix strictSpec parameter without alias (#3095)
* Revert "[maven-plugin] fix strictSpec parameter (#3071)" This reverts commit 8c9a151. * [maven-plugin] fix strictSpec parameter without alias
1 parent 4e9d226 commit ad06496

File tree

1 file changed

+4
-4
lines changed
  • modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin

1 file changed

+4
-4
lines changed

modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ public class CodeGenMojo extends AbstractMojo {
244244
/**
245245
* To treat a document strictly against the spec.
246246
*/
247-
@Parameter(name = "strictSpecBehavior", alias = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
248-
private Boolean strictSpecBehavior;
247+
@Parameter(name = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
248+
private Boolean strictSpec;
249249

250250
/**
251251
* To generate alias (array, map) as model
@@ -471,8 +471,8 @@ public void execute() throws MojoExecutionException {
471471
configurator.setValidateSpec(!skipValidateSpec);
472472
}
473473

474-
if (strictSpecBehavior != null) {
475-
configurator.setStrictSpecBehavior(strictSpecBehavior);
474+
if (strictSpec != null) {
475+
configurator.setStrictSpecBehavior(strictSpec);
476476
}
477477

478478
if (logToStderr != null) {

0 commit comments

Comments
 (0)