Skip to content

Better handling of boolean options in the Maven plugin#1252

Merged
wing328 merged 5 commits intoOpenAPITools:masterfrom
raghuraman1:mvn_plugin_boolean_fix_spring
Oct 21, 2018
Merged

Better handling of boolean options in the Maven plugin#1252
wing328 merged 5 commits intoOpenAPITools:masterfrom
raghuraman1:mvn_plugin_boolean_fix_spring

Conversation

@raghuraman1
Copy link
Copy Markdown
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
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Copy link
Copy Markdown
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
Copy Markdown
Member

wing328 commented Oct 16, 2018

To fix #1164

cc @OpenAPITools/generator-core-team

}
}

private void adjustAdditionalProperties(final CodegenConfig config) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

wing328 commented Oct 31, 2018

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