Skip to content

Commit f6e8aff

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents edbd528 + fbb912b commit f6e8aff

243 files changed

Lines changed: 2100 additions & 985 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ Here is a list of template creators:
11821182
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
11831183
* Scala Lagom: @gmkumar2005
11841184
* Scala Play: @adigerber
1185+
* TypeScript NestJS: @aryobenholzner
11851186
* Documentation
11861187
* AsciiDoc: @man-at-home
11871188
* HTML Doc 2: @jhitchcock
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: rust
2+
outputDir: samples/client/others/rust/reqwest/enum-query-params
3+
library: reqwest
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/enum-query-params.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/rust
6+
additionalProperties:
7+
supportAsync: true
8+
packageName: enum-query-params-reqwest

docs/generators/python-aiohttp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5555
<ul class="column-ul">
5656
<li>Dict</li>
5757
<li>List</li>
58+
<li>UUID</li>
5859
<li>bool</li>
5960
<li>bytes</li>
6061
<li>date</li>
@@ -155,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
155156
|DateTime|✓|OAS2,OAS3
156157
|Password|✓|OAS2,OAS3
157158
|File|✓|OAS2
158-
|Uuid||
159+
|Uuid||
159160
|Array|✓|OAS2,OAS3
160161
|Null|✗|OAS3
161162
|AnyType|✗|OAS2,OAS3

docs/generators/python-blueplanet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5555
<ul class="column-ul">
5656
<li>Dict</li>
5757
<li>List</li>
58+
<li>UUID</li>
5859
<li>bool</li>
5960
<li>bytes</li>
6061
<li>date</li>
@@ -155,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
155156
|DateTime|✓|OAS2,OAS3
156157
|Password|✓|OAS2,OAS3
157158
|File|✓|OAS2
158-
|Uuid||
159+
|Uuid||
159160
|Array|✓|OAS2,OAS3
160161
|Null|✗|OAS3
161162
|AnyType|✗|OAS2,OAS3

docs/generators/python-fastapi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5050
<ul class="column-ul">
5151
<li>Dict</li>
5252
<li>List</li>
53+
<li>UUID</li>
5354
<li>bool</li>
5455
<li>bytes</li>
5556
<li>date</li>
@@ -150,7 +151,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
150151
|DateTime|✓|OAS2,OAS3
151152
|Password|✓|OAS2,OAS3
152153
|File|✓|OAS2
153-
|Uuid||
154+
|Uuid||
154155
|Array|✓|OAS2,OAS3
155156
|Null|✗|OAS3
156157
|AnyType|✗|OAS2,OAS3

docs/generators/python-flask.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5555
<ul class="column-ul">
5656
<li>Dict</li>
5757
<li>List</li>
58+
<li>UUID</li>
5859
<li>bool</li>
5960
<li>bytes</li>
6061
<li>date</li>
@@ -155,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
155156
|DateTime|✓|OAS2,OAS3
156157
|Password|✓|OAS2,OAS3
157158
|File|✓|OAS2
158-
|Uuid||
159+
|Uuid||
159160
|Array|✓|OAS2,OAS3
160161
|Null|✗|OAS3
161162
|AnyType|✗|OAS2,OAS3

docs/generators/python.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5353
<ul class="column-ul">
5454
<li>Dict</li>
5555
<li>List</li>
56+
<li>UUID</li>
5657
<li>bool</li>
5758
<li>bytearray</li>
5859
<li>bytes</li>
@@ -155,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
155156
|DateTime|✓|OAS2,OAS3
156157
|Password|✓|OAS2,OAS3
157158
|File|✓|OAS2
158-
|Uuid||
159+
|Uuid||
159160
|Array|✓|OAS2,OAS3
160161
|Null|✗|OAS3
161162
|AnyType|✗|OAS2,OAS3

modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenModel.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,15 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
265265
private Map<String, CodegenProperty> requiredVarsMap;
266266
private String ref;
267267

268+
/**
269+
* An alias for vendor extensions, e.g. one can use {{exts.x-something}} for cleaner template
270+
*
271+
* @return vendor extensions
272+
*/
273+
public Map<String, Object> getExts() {
274+
return vendorExtensions;
275+
}
276+
268277
@Override
269278
public CodegenProperty getContains() {
270279
return contains;
@@ -365,7 +374,6 @@ public String getDiscriminatorName() {
365374
return discriminator == null ? null : discriminator.getPropertyName();
366375
}
367376

368-
369377
@Override
370378
public String getPattern() {
371379
return pattern;

modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ private static boolean nonEmpty(Map<?, ?> params) {
7979
return params != null && !params.isEmpty();
8080
}
8181

82+
/**
83+
* An alias for vendor extensions, e.g. one can use {{exts.x-something}} for cleaner template
84+
*
85+
* @return vendor extensions
86+
*/
87+
public Map<String, Object> getExts() {
88+
return vendorExtensions;
89+
}
90+
8291
/**
8392
* Check if there's at least one parameter
8493
*

modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,15 @@ public String toString() {
534534
return sb.toString();
535535
}
536536

537+
/**
538+
* An alias for vendor extensions, e.g. one can use {{exts.x-something}} for cleaner template
539+
*
540+
* @return vendor extensions
541+
*/
542+
public Map<String, Object> getExts() {
543+
return vendorExtensions;
544+
}
545+
537546
// use schema.getContains or content.mediaType.schema.getContains instead of this
538547
@Override
539548
public CodegenProperty getContains() {

0 commit comments

Comments
 (0)