Skip to content

Commit 8c2fd2b

Browse files
authored
Merge branch 'OpenAPITools:master' into fix/protobuf-discriminator-issues
2 parents f4e162f + 1689d7b commit 8c2fd2b

316 files changed

Lines changed: 20610 additions & 1627 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.

.github/workflows/samples-typescript-client.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- samples/client/others/typescript-angular/**
7+
- samples/client/others/typescript-angular-v20/**
78
# comment out angular released before Nov 2023
89
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
910
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
@@ -43,6 +44,7 @@ on:
4344
pull_request:
4445
paths:
4546
- samples/client/others/typescript-angular/**
47+
- samples/client/others/typescript-angular-v20/**
4648
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
4749
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
4850
#- samples/client/petstore/typescript-angular-v14-provided-in-root/**
@@ -92,6 +94,7 @@ jobs:
9294
- "20.x"
9395
sample:
9496
- samples/client/others/typescript-angular/
97+
- samples/client/others/typescript-angular-v20/
9598
#- samples/client/petstore/typescript-angular-v12-provided-in-root/
9699
#- samples/client/petstore/typescript-angular-v13-provided-in-root/
97100
#- samples/client/petstore/typescript-angular-v14-provided-in-root/

.github/workflows/samples-typescript-encode-decode.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
# clients
1717
- samples/client/others/typescript/encode-decode/test
1818
node-version:
19-
- 16
20-
- 18
2119
- 20
20+
- 22
21+
- 24
2222
steps:
2323
- uses: actions/checkout@v5
2424

bin/configs/typescript-angular-v19-deep-object.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: typescript-angular
2+
outputDir: samples/client/others/typescript-angular-v20/builds/query-param-deep-object
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/query-param-deep-object.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
5+
additionalProperties:
6+
ngVersion: 20.0.0
7+
npmName: sample-angular-20-0-0-query-param-deep-object
8+
supportsES6: true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: typescript-angular
2+
outputDir: samples/client/others/typescript-angular-v20/builds/query-param-form
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/query-param-form.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
5+
additionalProperties:
6+
ngVersion: 20.0.0
7+
npmName: sample-angular-20-0-0-query-param-form
8+
supportsES6: true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: typescript-angular
2+
outputDir: samples/client/others/typescript-angular-v20/builds/query-param-json
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/query-param-json.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
5+
additionalProperties:
6+
ngVersion: 20.0.0
7+
npmName: sample-angular-20-0-0-query-param-json
8+
supportsES6: true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public void processOpts() {
204204
supportingFiles.add(new SupportingFile("param.mustache", getIndexDirectory(), "param.ts"));
205205
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
206206
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
207+
supportingFiles.add(new SupportingFile("queryParams.mustache", getIndexDirectory(), "query.params.ts"));
207208

208209
if(ngVersionAtLeast_17) {
209210
supportingFiles.add(new SupportingFile("README.mustache", getIndexDirectory(), "README.md"));

modules/openapi-generator/src/main/resources/python/pyproject.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ include = ["{{packageName}}/py.typed"]
3333

3434
[tool.poetry.dependencies]
3535
python = "^3.9"
36+
{{^async}}
3637
urllib3 = ">= 2.1.0, < 3.0.0"
38+
{{/async}}
3739
python-dateutil = ">= 2.8.2"
3840
{{#asyncio}}
3941
aiohttp = ">= 3.8.4"
@@ -59,7 +61,9 @@ lazy-imports = ">= 1, < 2"
5961
requires-python = ">=3.9"
6062

6163
dependencies = [
64+
{{^async}}
6265
"urllib3 (>=2.1.0,<3.0.0)",
66+
{{/async}}
6367
"python-dateutil (>=2.8.2)",
6468
{{#httpx}}
6569
"httpx (>=0.28.1)",

modules/openapi-generator/src/main/resources/python/requirements.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{{^async}}
12
urllib3 >= 2.1.0, < 3.0.0
3+
{{/async}}
24
python_dateutil >= 2.8.2
35
{{#asyncio}}
46
aiohttp >= 3.8.4

modules/openapi-generator/src/main/resources/python/setup.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ NAME = "{{{projectName}}}"
1515
VERSION = "{{packageVersion}}"
1616
PYTHON_REQUIRES = ">= 3.9"
1717
REQUIRES = [
18+
{{^async}}
1819
"urllib3 >= 2.1.0, < 3.0.0",
20+
{{/async}}
1921
"python-dateutil >= 2.8.2",
2022
{{#asyncio}}
2123
"aiohttp >= 3.8.4",

0 commit comments

Comments
 (0)