29 Commits

Author SHA1 Message Date
Jim Schubert
a96ab1cf9d
[core] GeneratorSettings, WorkflowSettings, and cleanup in CodegenConfigurator (#2946)
* Introduce GeneratorSettings + cleanup

GeneratorSettings is an immutable settings object, intended to limit the
manipulation of generator settings.

To move to GeneratorSettings, lots of modification was done to
CodegenConfigurator. The goal  here is that CodegenConfigurator
would create the contextual information required to initiate a
generator run:

* GeneratorSettings
* Workflow related settings
* Configuring "system" GeneratorProperties (ThreadLocal properties)
* Deserializing from file to config object
* Input spec document (OpenAPI, intending to target others)

ClientOpts was generally unused, and the few places it was being used
have been updated to pass the properties to
codegen.additionalProperties.

* Add sanity to system properties

The -D argument for the generate command is an application argument
which is easily confused for Java System Properties. This isn't the
case, as setting values here doesn't update the configuration in
System.getProperties().

This adds a warning and deprecation to that option, as defining these
values as system properties will also continue to work as expected. This
makes the -D application argument redundant and confusing.

* Contextualize generator/workflow settings

This splits settings relevant to generator configuration (the what) and
workflow configuration (the how) in an attempt to make configuration
easier to conceptualize.

* Update Gradle task w/ CodegenConfigurator setters

* Remove -D usage in scripts

* Add -p option for additional properties

* Regnerate samples
2019-06-07 13:07:52 -04:00
Richard Whitehouse
a4be2c0bb4 Remove -XX:MaxPermSize (#2712)
This was removed in JDK 8 and produces a warning
2019-04-23 11:34:01 +08:00
Jim Schubert
27426f7b52 Cli generator name option, replaces 'language' options in CLI and Maven Plugin (#57) 2018-05-23 05:41:19 +02:00
Ben Mordue
0d82971b0c Use maven batch-mode (#70) 2018-05-16 21:39:52 +08:00
Jérémie Bresson
019b0dca1c
Add echo line at the beginning of each sh script (#202) 2018-04-23 09:58:45 +02:00
Jeremie Bresson
53597764c3 Add OpenAPI spec 3.0 support (beta)
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com>
Co-authored-by: Jeremie Bresson <dev@jmini.fr>
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
Co-authored-by: Martin Delille <martin@phonations.com>
Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2018-04-17 09:19:10 +02:00
wing328
4cfbc118e8 renaming for openapi-generator 2018-03-13 14:41:23 +08:00
wing328
b18e003d12 update petstore script usage 2017-06-29 15:32:10 +08:00
Takuro Wada
7916f5243d [Python] Fix bug of test files about packageName 2016-06-08 09:24:12 +09:00
wing328
5a88b9e896 update python to use test spec 2016-04-14 18:30:54 +08:00
Tony Tam
a4ce6d7074 updated scripts 2015-03-29 20:55:26 -07:00
Tony Tam
f577345b14 fixed examples, readme 2015-03-25 12:11:40 -07:00
Tony Tam
0563be891c made scripts call local file to avoid transient server issues 2015-02-16 17:36:48 -08:00
Tony Tam
e943f5c864 added readme, rebuilt client 2015-02-15 19:50:23 -08:00
Tony Tam
098f7930eb added script 2015-02-15 18:07:05 -08:00
Tony Tam
d6bdd09273 removed unimplemented scripts 2014-10-24 14:50:40 -07:00
Tony Tam
394a064cc3 added scripts 2014-09-22 16:44:19 -07:00
Tony Tam
c5ccc0a908 update to swagger 2.0 2014-08-29 09:47:17 -07:00
Tony Tam
5e56346dc9 updated scripts to use only assembly 2014-08-27 01:03:32 -07:00
Tony Tam
8c53837802 updated scripts for assembly 2014-08-27 00:15:26 -07:00
Tony Tam
5076d76a74 updated scripts to detect scala version and use appropriate library if possible 2013-10-18 14:46:03 -07:00
Tony Tam
932dc843f9 updated urls per #75 2013-07-20 23:12:58 -07:00
Tony Tam
24af6a00c6 added 2.9.1 launcher support 2013-07-09 16:01:34 -07:00
Ivan Porto Carrero
a31780e08f Make the launcher scripts use the assembly generated jar 2013-06-25 20:10:48 -07:00
Tony Tam
c2d332ce20 updated scripts 2012-12-04 07:08:35 -08:00
Tony Tam
1a07c0796f updated resource path 2012-11-26 08:59:32 -08:00
Tony Tam
b6b80474b7 moved to client folder 2012-09-23 18:40:47 -07:00
Tony Tam
b648f84980 moved to samples dir 2012-09-12 06:36:45 -07:00
Tony Tam
384a549807 added python files 2012-08-24 19:39:34 -07:00