You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
| helpTxt | Generates a Java client library<br /><br />Features in this generator:<br />- v3.0.0 - [v3.1.0](#schema-feature) OpenAPI Specification support<br />- Very thorough documentation generated in the style of javadocs<br />- Input types constrained for a Schema in SomeSchema.validate<br /> - validate method can accept arbitrary List/Map/null/int/long/double/float/String json data<br />- Immutable List output classes generated and returned by validate for List<?> input<br />- Immutable Map output classes generated and returned by validate for Map<?, ?> input<br />- Strictly typed list input can be instantiated in client code using generated ListBuilders<br />- Strictly typed map input can be instantiated in client code using generated MapBuilders<br /> - Sequential map builders are generated ensuring that required properties are set before build is invoked. Looks like:<br /> - `new MapBuilder().requiredA("a").requiredB("b").build()`<br /> - `new MapBuilder().requiredA("a").requiredB("b").optionalProp("c").additionalProperty("someAddProp", "d").build()`<br />- Run time type checking and validation when<br /> - validating schema payloads<br /> - instantiating List output class (validation run)<br /> - instantiating Map output class (validation run)<br /> - Note: if needed, validation of json schema keywords can be deactivated via a SchemaConfiguration class<br />- Enums classes are generated and may be input into Schema.validate or the List/MapBuilder add/setter methods<br />- The [Checker-Framework's](https://github.com/typetools/checker-framework) NullnessChecker and @Nullable annotations are used in the java client<br /> - ensuring that null pointer exceptions will not happen<br />- Invalid (in java) property names supported like `class`, `1var`, `hi-there` etc in<br /> - component schema names<br /> - schema property names (a fallback setter is written in the MapBuilder)<br />- Generated interfaces are largely consistent with the python code<br />- Openapi spec inline schemas supported at any depth in any location<br />- Format support for: int32, int64, float, double, date, datetime, uuid<br />- Payload values are not coerced when validated, so a date/date-time value can pass other validations that describe the payload only as type string<br />- enum types are generated for enums of type string/integer/number/boolean/null<br />- String transmission of numbers supported with type: string, format: number | |
15
+
| helpMsg | Generates a Java client library<br /><br />Features in this generator:<br />- v3.0.0 - [v3.1.0](#schema-feature) OpenAPI Specification support<br />- Very thorough documentation generated in the style of javadocs<br />- Input types constrained for a Schema in SomeSchema.validate<br /> - validate method can accept arbitrary List/Map/null/int/long/double/float/String json data<br />- Immutable List output classes generated and returned by validate for List<?> input<br />- Immutable Map output classes generated and returned by validate for Map<?, ?> input<br />- Strictly typed list input can be instantiated in client code using generated ListBuilders<br />- Strictly typed map input can be instantiated in client code using generated MapBuilders<br /> - Sequential map builders are generated ensuring that required properties are set before build is invoked. Looks like:<br /> - `new MapBuilder().requiredA("a").requiredB("b").build()`<br /> - `new MapBuilder().requiredA("a").requiredB("b").optionalProp("c").additionalProperty("someAddProp", "d").build()`<br />- Run time type checking and validation when<br /> - validating schema payloads<br /> - instantiating List output class (validation run)<br /> - instantiating Map output class (validation run)<br /> - Note: if needed, validation of json schema keywords can be deactivated via a SchemaConfiguration class<br />- Enums classes are generated and may be input into Schema.validate or the List/MapBuilder add/setter methods<br />- The [Checker-Framework's](https://github.com/typetools/checker-framework) NullnessChecker and @Nullable annotations are used in the java client<br /> - ensuring that null pointer exceptions will not happen<br />- Invalid (in java) property names supported like `class`, `1var`, `hi-there` etc in<br /> - component schema names<br /> - schema property names (a fallback setter is written in the MapBuilder)<br />- Generated interfaces are largely consistent with the python code<br />- Openapi spec inline schemas supported at any depth in any location<br />- Format support for: int32, int64, float, double, date, datetime, uuid<br />- Payload values are not coerced when validated, so a date/date-time value can pass other validations that describe the payload only as type string<br />- enum types are generated for enums of type string/integer/number/boolean/null<br />- String transmission of numbers supported with type: string, format: number | |
16
16
17
17
## CONFIG OPTIONS
18
18
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
19
19
20
20
| Option | Description | Values | Default |
21
21
| ------ | ----------- | ------ | ------- |
22
22
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false||false|
23
-
|apiPackage|package for generated api classes||apis|
24
23
|artifactDescription|artifact description in generated pom.xml||OpenAPI Java|
25
24
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename||openapi-java-client|
26
25
|artifactUrl|artifact URL in generated pom.xml||https://github.com/openapi-json-schema-tools/openapi-json-schema-generator|
@@ -30,7 +29,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
30
29
|developerOrganization|developer organization in generated pom.xml||OpenAPITools.org|
31
30
|developerOrganizationUrl|developer organization URL in generated pom.xml||http://openapijsonschematools.org|
32
31
|groupId|groupId in generated pom.xml||org.openapijsonschematools|
33
-
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.||false|
34
32
|invokerPackage|root package for generated code||org.openapijsonschematools.client|
35
33
|licenseName|The name of the license||Unlicense|
36
34
|licenseUrl|The URL of the license||http://unlicense.org|
@@ -192,26 +190,26 @@ These options may be applied as additional-properties (cli) or configOptions (pl
192
190
| Name | Supported | Defined By |
193
191
| ---- | --------- | ---------- |
194
192
|Custom|✗|OAS2,OAS3
195
-
|Int32|✓|OAS2,OAS3
196
-
|Int64|✓|OAS2,OAS3
197
-
|Integer|✓|OAS2,OAS3
198
-
|Float|✓|OAS2,OAS3
199
-
|Double|✓|OAS2,OAS3
200
-
|Number|✓|OAS2,OAS3
201
-
|String|✓|OAS2,OAS3
193
+
|Int32|✗|OAS2,OAS3
194
+
|Int64|✗|OAS2,OAS3
195
+
|Integer|✗|OAS2,OAS3
196
+
|Float|✗|OAS2,OAS3
197
+
|Double|✗|OAS2,OAS3
198
+
|Number|✗|OAS2,OAS3
199
+
|String|✗|OAS2,OAS3
202
200
|Byte|✗|OAS2,OAS3
203
201
|Binary|✗|OAS2,OAS3
204
-
|Boolean|✓|OAS2,OAS3
205
-
|Date|✓|OAS2,OAS3
206
-
|DateTime|✓|OAS2,OAS3
202
+
|Boolean|✗|OAS2,OAS3
203
+
|Date|✗|OAS2,OAS3
204
+
|DateTime|✗|OAS2,OAS3
207
205
|Password|✗|OAS2,OAS3
208
206
|File|✗|OAS2
209
-
|Uuid|✓|OAS2,OAS3
210
-
|Array|✓|OAS2,OAS3
211
-
|Null|✓|OAS3
212
-
|AnyType|✓|OAS2,OAS3
213
-
|Object|✓|OAS2,OAS3
214
-
|Enum|✓|OAS2,OAS3
207
+
|Uuid|✗|OAS2,OAS3
208
+
|Array|✗|OAS2,OAS3
209
+
|Null|✗|OAS3
210
+
|AnyType|✗|OAS2,OAS3
211
+
|Object|✗|OAS2,OAS3
212
+
|Enum|✗|OAS2,OAS3
215
213
216
214
### Documentation Feature
217
215
| Name | Supported | Defined By |
@@ -233,7 +231,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
233
231
### Global Feature
234
232
| Name | Supported | Defined By |
235
233
| ---- | --------- | ---------- |
236
-
|Info|✓|OAS2,OAS3
234
+
|Info|✗|OAS2,OAS3
237
235
|Servers|✓|OAS3
238
236
|Paths|✓|OAS2,OAS3
239
237
|Webhooks|✗|OAS3
@@ -334,7 +332,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| helpTxt | Generates a Python client library<br /><br />Features in this generator:<br />- type hints on endpoints and model creation<br />- model parameter names use the spec defined keys and cases<br />- robust composition (oneOf/anyOf/allOf/not) where payload data is stored in one instance only<br />- endpoint parameter names use the spec defined keys and cases<br />- inline schemas are supported at any location including composition<br />- multiple content types supported in request body and response bodies<br />- run time type checking + json schema validation<br />- json schema keyword validation may be selectively disabled with SchemaConfiguration<br />- enums of type string/integer/boolean typed using typing.Literal<br />- mypy static type checking run on generated sample<br />- Sending/receiving decimals as strings supported with type:string format: number -> DecimalSchema<br />- Sending/receiving uuids as strings supported with type:string format: uuid -> UUIDSchema<br />- quicker load time for python modules (a single endpoint can be imported and used without loading others)<br />- composed schemas with type constraints supported (type:object + oneOf/anyOf/allOf)<br />- schemas are not coerced/cast. For example string + date are both stored as string, and there is a date accessor | |
15
+
| helpMsg | Generates a Python client library<br /><br />Features in this generator:<br />- type hints on endpoints and model creation<br />- model parameter names use the spec defined keys and cases<br />- robust composition (oneOf/anyOf/allOf/not) where payload data is stored in one instance only<br />- endpoint parameter names use the spec defined keys and cases<br />- inline schemas are supported at any location including composition<br />- multiple content types supported in request body and response bodies<br />- run time type checking + json schema validation<br />- json schema keyword validation may be selectively disabled with SchemaConfiguration<br />- enums of type string/integer/boolean typed using typing.Literal<br />- mypy static type checking run on generated sample<br />- Sending/receiving decimals as strings supported with type:string format: number -> DecimalSchema<br />- Sending/receiving uuids as strings supported with type:string format: uuid -> UUIDSchema<br />- quicker load time for python modules (a single endpoint can be imported and used without loading others)<br />- composed schemas with type constraints supported (type:object + oneOf/anyOf/allOf)<br />- schemas are not coerced/cast. For example string + date are both stored as string, and there is a date accessor | |
16
16
17
17
## CONFIG OPTIONS
18
18
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
@@ -22,12 +22,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
22
22
|generateSourceCodeOnly|Specifies that only a library source code is to be generated.||false|
23
23
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.||true|
24
24
|nonCompliantUseDiscriminatorIfCompositionFails|When true, If the payload fails to validate against composed schemas (allOf/anyOf/oneOf/not) and a discriminator is present, then ignore the composition validation errors and attempt to use the discriminator to validate the payload.<br />Note: setting this to true makes the generated client not comply with json schema because it ignores composition validation errors. Please consider making your schemas more restrictive rather than setting this to true. You can do that by:<ul><li>defining the propertyName as an enum with only one value in the schemas that are in your discriminator map</li><li>setting additionalProperties: false in your schemas</li></ul>|<dl><dt>**true**</dt><dd>If composition fails and a discriminator exists, the composition errors will be ignored and validation will be attempted with the discriminator</dd><dt>**false**</dt><dd>Composition validation must succeed. Discriminator validation must succeed.</dd></dl>|false|
25
-
|packageName|python package name (convention: snake_case).||openapi_client|
26
25
|packageUrl|python package URL.||null|
27
26
|packageVersion|python package version.||1.0.0|
28
27
|projectName|python project name in setup.py (e.g. petstore-api).||null|
29
28
|recursionLimit|Set the recursion limit. If not set, use the system default value.||null|
0 commit comments