mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
[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:
parent
4e9d226443
commit
ad06496887
@ -244,8 +244,8 @@ public class CodeGenMojo extends AbstractMojo {
|
|||||||
/**
|
/**
|
||||||
* To treat a document strictly against the spec.
|
* To treat a document strictly against the spec.
|
||||||
*/
|
*/
|
||||||
@Parameter(name = "strictSpecBehavior", alias = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
|
@Parameter(name = "strictSpec", property = "openapi.generator.maven.plugin.strictSpec", required = false)
|
||||||
private Boolean strictSpecBehavior;
|
private Boolean strictSpec;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To generate alias (array, map) as model
|
* To generate alias (array, map) as model
|
||||||
@ -471,8 +471,8 @@ public class CodeGenMojo extends AbstractMojo {
|
|||||||
configurator.setValidateSpec(!skipValidateSpec);
|
configurator.setValidateSpec(!skipValidateSpec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strictSpecBehavior != null) {
|
if (strictSpec != null) {
|
||||||
configurator.setStrictSpecBehavior(strictSpecBehavior);
|
configurator.setStrictSpecBehavior(strictSpec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logToStderr != null) {
|
if (logToStderr != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user