Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit ae60db0

Browse files
authored
Java, generates all schemas (#289)
* Updates settings of java template engine * client regen * Adds outer pipes to readme table * Fixes schema packages * Fixes request bodies and securty schemas package names for java * Fixes contentType package names in components * Fixes content type folders in paths * Fixes component contenct schema file names * Fixes component schema filenames when they are not under content keys * Adds shared imports * Adds schema filename fixing for paths * java sample regen * Fixes response module names for java * Templates updated, implements var equals class * Client regen * Adds string schema class definition * Adds getSchemaFilename and cache to correctly fetch schema class/file names * Renames Schema to JsonSchema to allow schemas named Schema * Sample regen * Adds and uses containerJsonPathPiece * Removes incorrect class word from var equals class template * Adds validate method to string schemas * Adds general missing imports, adds no params in var equals class * Adds format info to string schemas * Adds boolean schema generation * Adds number schema template * Number schemas written * Fixes bug where generated python files changed * Moves schema class into JsonSchemas class to prevent name collisions * Adds NotAnyTypeSchema * Adds integer to excluded words, fixes java tests * Sample regen * Sanitizes model names in java, fixes properties in ObjectWithDifficultlyNamedProps * Improves path handling * FIxes camelCasing for schema class names * Fixes parameter package + response headers class names * Fixes common path param schema name * Regens sample to fix specialmodelname schema * Adds list schema generation, no items yet * Adds items to list schemas * Adds suffix number onto refClass * Adds helper template * Adds ref schemas * Includes container in ref schema validate * Removes container included comment * Adds needed imports to ref schema files * Adds map schemas * Adds properties * Adds required properties * Adds additionalProperties to map schemas * Fixes schema numbers * Adds anytypeormultitype template * Adds getSchemaKeywords to CodegenSchema * Adds fake validator and uses it for all validators that have not yet been written * Fixes input types for anytype or multitype schemas * Adds code to gather java imports * Almost fixes schema naming colisions * Fixes parameter ordering bug * Removes withDefault from SchemaValidator * Converts some schemas to static final classes * Fixes properties definition * Fixes java tests in java client * Fixes java tests * Fixes python response parameter name change * Generator docs regen
1 parent fbd7844 commit ae60db0

File tree

457 files changed

+22360
-2295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

457 files changed

+22360
-2295
lines changed

docs/generators/java.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
2222
|additionalEnumTypeAnnotations|Additional annotations for enum type(class level annotations)| |null|
2323
|additionalModelTypeAnnotations|Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)| |null|
2424
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
25-
|apiPackage|package for generated api classes| |org.openapijsonschematools.client.api|
25+
|apiPackage|package for generated api classes| |apis|
2626
|artifactDescription|artifact description in generated pom.xml| |OpenAPI Java|
2727
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-java-client|
2828
|artifactUrl|artifact URL in generated pom.xml| |https://github.com/openapi-json-schema-tools/openapi-json-schema-generator|
@@ -58,7 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5858
|licenseUrl|The URL of the license| |http://unlicense.org|
5959
|microprofileFramework|Framework for microprofile. Possible values "kumuluzee"| |null|
6060
|microprofileRestClientVersion|Version of MicroProfile Rest Client API.| |null|
61-
|modelPackage|package for generated models| |org.openapijsonschematools.client.model|
61+
|modelPackage|package for generated models| |components.schemas|
6262
|openApiNullable|Enable OpenAPI Jackson Nullable library| |true|
6363
|parcelableModel|Whether to generate models for Android that implement Parcelable with the okhttp-gson library.| |false|
6464
|parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|
@@ -151,7 +151,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
151151
<li>else</li>
152152
<li>enum</li>
153153
<li>extends</li>
154-
<li>file</li>
155154
<li>final</li>
156155
<li>finally</li>
157156
<li>float</li>
@@ -162,8 +161,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
162161
<li>import</li>
163162
<li>instanceof</li>
164163
<li>int</li>
164+
<li>integer</li>
165165
<li>interface</li>
166+
<li>linkedhashset</li>
166167
<li>list</li>
168+
<li>localdate</li>
167169
<li>localreturntype</li>
168170
<li>localvaraccept</li>
169171
<li>localvaraccepts</li>
@@ -178,10 +180,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
178180
<li>localvarpostbody</li>
179181
<li>localvarqueryparams</li>
180182
<li>long</li>
183+
<li>map</li>
181184
<li>native</li>
182185
<li>new</li>
183186
<li>null</li>
184-
<li>object</li>
187+
<li>number</li>
185188
<li>package</li>
186189
<li>private</li>
187190
<li>protected</li>
@@ -190,6 +193,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
190193
<li>short</li>
191194
<li>static</li>
192195
<li>strictfp</li>
196+
<li>string</li>
193197
<li>stringutil</li>
194198
<li>super</li>
195199
<li>switch</li>
@@ -199,9 +203,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
199203
<li>throws</li>
200204
<li>transient</li>
201205
<li>try</li>
206+
<li>uuid</li>
202207
<li>void</li>
203208
<li>volatile</li>
204209
<li>while</li>
210+
<li>zoneddatetime</li>
205211
</ul>
206212

207213
## FEATURE SET

docs/generators/jaxrs-jersey.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
133133
<li>else</li>
134134
<li>enum</li>
135135
<li>extends</li>
136-
<li>file</li>
137136
<li>final</li>
138137
<li>finally</li>
139138
<li>float</li>
@@ -144,8 +143,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
144143
<li>import</li>
145144
<li>instanceof</li>
146145
<li>int</li>
146+
<li>integer</li>
147147
<li>interface</li>
148+
<li>linkedhashset</li>
148149
<li>list</li>
150+
<li>localdate</li>
149151
<li>localreturntype</li>
150152
<li>localvaraccept</li>
151153
<li>localvaraccepts</li>
@@ -160,10 +162,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
160162
<li>localvarpostbody</li>
161163
<li>localvarqueryparams</li>
162164
<li>long</li>
165+
<li>map</li>
163166
<li>native</li>
164167
<li>new</li>
165168
<li>null</li>
166-
<li>object</li>
169+
<li>number</li>
167170
<li>package</li>
168171
<li>private</li>
169172
<li>protected</li>
@@ -172,6 +175,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
172175
<li>short</li>
173176
<li>static</li>
174177
<li>strictfp</li>
178+
<li>string</li>
175179
<li>stringutil</li>
176180
<li>super</li>
177181
<li>switch</li>
@@ -181,9 +185,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl
181185
<li>throws</li>
182186
<li>transient</li>
183187
<li>try</li>
188+
<li>uuid</li>
184189
<li>void</li>
185190
<li>volatile</li>
186191
<li>while</li>
192+
<li>zoneddatetime</li>
187193
</ul>
188194

189195
## FEATURE SET

samples/client/petstore/java/.openapi-generator/FILES

+342-18
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)