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

Better handling of boolean options in the Maven plugin #1252

Merged
merged 5 commits into from
Oct 21, 2018
Merged

Better handling of boolean options in the Maven plugin #1252

merged 5 commits into from
Oct 21, 2018

Conversation

raghuraman1
Copy link
Contributor

@raghuraman1 raghuraman1 commented Oct 16, 2018

This contains fixes for the maven plugin. It causes the conversion to booleans of the additional properties

Used commons-configuration2 for
org.apache.commons.configuration2.PropertiesConfiguration.
It makes the configuration easier to read amongst other benefits
@@ -52,6 +52,11 @@
<!-- <version>4.12</version> -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use spaces instead of tabs

@wing328
Copy link
Member

wing328 commented Oct 16, 2018

To fix #1164

cc @OpenAPITools/generator-core-team

@@ -608,4 +610,24 @@ private void addCompileSourceRootIfConfigured() {
}
}
}

private void adjustAdditionalProperties(final CodegenConfig config) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raghuraman1 please add a Java docstring explaining what this function does.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@wing328 wing328 added this to the 3.3.2 milestone Oct 21, 2018
@wing328 wing328 merged commit 2b88a1d into OpenAPITools:master Oct 21, 2018
@wing328 wing328 changed the title Boolean conversion for maven plugin Better handling of boolean options in the Maven plugin Oct 31, 2018
@wing328
Copy link
Member

wing328 commented Oct 31, 2018

@raghuraman1 thanks for the PR, which is included in the v3.3.2 release: https://twitter.com/oas_generator/status/1057649626101112832

A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
* saving the fixes.
Used commons-configuration2 for
org.apache.commons.configuration2.PropertiesConfiguration.
It makes the configuration easier to read amongst other benefits

* removing tabs

* updating and simplifying based on sugegstion from William. This should
now fix across all generators

* upgraded pom

* added some javadocs for the new method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants