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

Add properties config to Maven parameters #2963

Merged

Conversation

InfoSec812
Copy link
Contributor

PR checklist

Description of the PR

Exposes the CodeGenMojo configuration settings as java properties to that they can be modified using -D arguments

Resolves #2962

@wing328
Copy link
Member

wing328 commented May 30, 2019

@InfoSec812 thanks for the PR. When you've time, I wonder if you can resolve the merge conflicts and then I'll merge this PR into master.

@InfoSec812
Copy link
Contributor Author

@InfoSec812 thanks for the PR. When you've time, I wonder if you can resolve the merge conflicts and then I'll merge this PR into master.

Resolved and I included an exposed property for the engine parameter

@wing328 wing328 merged commit ddf21f0 into OpenAPITools:master May 31, 2019
@wing328 wing328 added this to the 4.0.1 milestone May 31, 2019
@wing328 wing328 changed the title Resolves #2962 - Add properties config to Maven parameters Add properties config to Maven parameters May 31, 2019
@rvowles
Copy link

rvowles commented Jun 1, 2019

There appears to be a bug in this PR. I just build master and am using it, and its exploding with this field as it does not match its named parameter. Maven is trying to give it a default value by setting the field "strictSpec" and the field is called "strictSpecBehaviour". @InfoSec812 @wing328

@wing328
Copy link
Member

wing328 commented Jun 3, 2019

@rvowles please open an issue to track it and we'll look into it.

jimschubert added a commit to jimschubert/openapi-generator that referenced this pull request Jun 5, 2019
* 4.1.x: (56 commits)
  sync master
  Update compatibility table
  Ruby client: escape path parameters (OpenAPITools#3039)
  [gradle plugin] Release 4.0.1 fixes (OpenAPITools#3051)
  Update version to 4.0.2-SNAPSHOT (OpenAPITools#3047)
  Map number to double time since float is also parsed as double in Qt5 C++ (OpenAPITools#3046)
  Prepare 4.0.1 release (OpenAPITools#3041)
  [gradle] Reworking publishing pipeline (OpenAPITools#2886)
  [typescript-fetch] Fix uploading files (OpenAPITools#2900)
  Resolves OpenAPITools#2962 - Add properties config to Maven parameters (OpenAPITools#2963)
  fix(golang): Check error of xml Encode (OpenAPITools#3027)
  [C++][Restbed] Add handler callback methods (OpenAPITools#2911)
  Remove null checks for C# value types (OpenAPITools#2933)
  [python-server] Support python 3.7 for all server-generators (OpenAPITools#2884)
  Use golang's provided method names (gin) (OpenAPITools#2983)
  [python] Adding constructor parameters to Configuration and improving documentation (OpenAPITools#3002)
  Add new option to maven plugin's readme (OpenAPITools#3025)
  Engine param in maven plugin. (OpenAPITools#2881)
  Added support for patterns on model properties (OpenAPITools#2948)
  [csharp] Make API response headers dictionary case insensitive (OpenAPITools#2998)
  ...
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.

[REQ] Expose all top-level config options as properties
3 participants