Skip to content

Commit ae3879a

Browse files
author
rva8kor
committed
Merge remote-tracking branch 'upstream/master' into httplib-server-codegen_4_improvements
2 parents 093b99b + 19945d9 commit ae3879a

11,085 files changed

Lines changed: 440913 additions & 8473 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-dotnet-fx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- samples/client/petstore/csharp/generichost/net4.8/**
1212
jobs:
1313
build:
14-
name: Build .Net projects
14+
name: Build .Net Framework projects
1515
runs-on: windows-latest
1616
strategy:
1717
fail-fast: false

.github/workflows/samples-dotnet-standard.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
1616
jobs:
1717
build:
18-
name: Build .Net projects
18+
name: Build .Net Standard projects
1919
runs-on: windows-latest
2020
strategy:
2121
fail-fast: false
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Samples C# .Net 10 Clients
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/csharp/generichost/latest/**
7+
- samples/client/petstore/csharp/generichost/net10/**
8+
- samples/client/petstore/csharp/httpclient/net10/**
9+
- samples/client/petstore/csharp/restsharp/net10/**
10+
- samples/client/petstore/csharp/unityWebRequest/net10/**
11+
pull_request:
12+
paths:
13+
- samples/client/petstore/csharp/generichost/latest/**
14+
- samples/client/petstore/csharp/generichost/net10/**
15+
- samples/client/petstore/csharp/httpclient/net10/**
16+
- samples/client/petstore/csharp/restsharp/net10/**
17+
- samples/client/petstore/csharp/unityWebRequest/net10/**
18+
jobs:
19+
build:
20+
name: Build .Net 10 projects
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
sample:
26+
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
27+
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
28+
- samples/client/petstore/csharp/generichost/latest/Tags
29+
- samples/client/petstore/csharp/generichost/latest/HelloWorld
30+
- samples/client/petstore/csharp/generichost/latest/OneOfList
31+
- samples/client/petstore/csharp/generichost/net10/AllOf
32+
- samples/client/petstore/csharp/generichost/net10/AnyOf
33+
- samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
34+
- samples/client/petstore/csharp/generichost/net10/FormModels
35+
# - samples/client/petstore/csharp/generichost/net10/ManualPetstoreTests
36+
# - samples/client/petstore/csharp/generichost/net10/ManualSourceGenerationTests
37+
- samples/client/petstore/csharp/generichost/net10/NullReferenceTypes
38+
- samples/client/petstore/csharp/generichost/net10/OneOf
39+
- samples/client/petstore/csharp/generichost/net10/Petstore
40+
- samples/client/petstore/csharp/generichost/net10/SourceGeneration
41+
- samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate
42+
# restsharp
43+
- samples/client/petstore/csharp/restsharp/net10/EnumMappings
44+
# httpclient
45+
- samples/client/petstore/csharp/httpclient/net10/Petstore
46+
- samples/client/petstore/csharp/httpclient/net10/Petstore-nonPublicApi
47+
# unity
48+
# - samples/client/petstore/csharp/unityWebRequest/net10/Petstore
49+
steps:
50+
- uses: actions/checkout@v5
51+
- uses: actions/setup-dotnet@v5.0.1
52+
with:
53+
dotnet-version: '10.x'
54+
- name: Build
55+
working-directory: ${{ matrix.sample }}
56+
run: dotnet build Org.OpenAPITools.sln
57+
- name: Test
58+
working-directory: ${{ matrix.sample }}
59+
run: dotnet test Org.OpenAPITools.sln

.github/workflows/samples-dotnet8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- samples/client/petstore/csharp/unityWebRequest/net8/**
1616
jobs:
1717
build:
18-
name: Build .Net projects
18+
name: Build .Net 8 projects
1919
runs-on: ubuntu-latest
2020
strategy:
2121
fail-fast: false

.github/workflows/samples-dotnet9.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,24 @@ name: Samples C# .Net 9 Clients
33
on:
44
push:
55
paths:
6-
- samples/client/petstore/csharp/generichost/latest/**
76
- samples/client/petstore/csharp/generichost/net9/**
87
- samples/client/petstore/csharp/httpclient/net9/**
98
- samples/client/petstore/csharp/restsharp/net9/**
109
- samples/client/petstore/csharp/unityWebRequest/net9/**
1110
pull_request:
1211
paths:
13-
- samples/client/petstore/csharp/generichost/latest/**
1412
- samples/client/petstore/csharp/generichost/net9/**
1513
- samples/client/petstore/csharp/httpclient/net9/**
1614
- samples/client/petstore/csharp/restsharp/net9/**
1715
- samples/client/petstore/csharp/unityWebRequest/net9/**
1816
jobs:
1917
build:
20-
name: Build .Net projects
18+
name: Build .Net 9 projects
2119
runs-on: ubuntu-latest
2220
strategy:
2321
fail-fast: false
2422
matrix:
2523
sample:
26-
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
27-
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
28-
- samples/client/petstore/csharp/generichost/latest/Tags
29-
- samples/client/petstore/csharp/generichost/latest/HelloWorld
30-
- samples/client/petstore/csharp/generichost/latest/OneOfList
3124
- samples/client/petstore/csharp/generichost/net9/AllOf
3225
- samples/client/petstore/csharp/generichost/net9/AnyOf
3326
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
@@ -50,7 +43,7 @@ jobs:
5043
- uses: actions/checkout@v5
5144
- uses: actions/setup-dotnet@v5.0.1
5245
with:
53-
dotnet-version: '9.0.101'
46+
dotnet-version: '9.0.x'
5447
- name: Build
5548
working-directory: ${{ matrix.sample }}
5649
run: dotnet build Org.OpenAPITools.sln

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div align="center">
1717

18-
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.18.0`):
18+
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.19.0`):
1919
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
2020
[![Bitrise](https://img.shields.io/bitrise/4a2b10a819d12b67/master?label=bitrise%3A%20Swift+4,5&token=859FMDR8QHwabCzwvZK6vQ)](https://app.bitrise.io/app/4a2b10a819d12b67)
2121

@@ -148,8 +148,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
148148

149149
| OpenAPI Generator Version | Release Date | Notes |
150150
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
151-
| 7.18.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 10.12.2025 | Minor release with breaking changes (with fallback) |
152-
| [7.17.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.17.0) (latest stable release) | 29.10.2025 | Minor release with breaking changes (with fallback) |
151+
| 7.19.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 22.01.2026 | Minor release with breaking changes (with fallback) |
152+
| [7.18.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.18.0) (latest stable release) | 22.12.2025 | Minor release with breaking changes (with fallback) |
153153
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
154154
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
155155
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
@@ -212,16 +212,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
212212
<!-- RELEASE_VERSION -->
213213
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 runtime at a minimum):
214214

215-
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.17.0/openapi-generator-cli-7.17.0.jar`
215+
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar`
216216

217217
For **Mac/Linux** users:
218218
```sh
219-
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.17.0/openapi-generator-cli-7.17.0.jar -O openapi-generator-cli.jar
219+
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar -O openapi-generator-cli.jar
220220
```
221221

222222
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
223223
```
224-
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.17.0/openapi-generator-cli-7.17.0.jar
224+
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar
225225
```
226226

227227
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
@@ -456,7 +456,7 @@ openapi-generator-cli version
456456
To use a specific version of "openapi-generator-cli"
457457

458458
```sh
459-
openapi-generator-cli version-manager set 7.17.0
459+
openapi-generator-cli version-manager set 7.18.0
460460
```
461461

462462
Or install it as dev-dependency:
@@ -480,7 +480,7 @@ pip install openapi-generator-cli
480480

481481
To install a specific version
482482
```
483-
pip install openapi-generator-cli==7.17.0
483+
pip install openapi-generator-cli==7.18.0
484484
```
485485

486486
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
@@ -506,7 +506,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
506506
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
507507

508508
<!-- RELEASE_VERSION -->
509-
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.17.0/openapi-generator-cli-7.17.0.jar)
509+
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar)
510510
<!-- /RELEASE_VERSION -->
511511

512512
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/net10/AllOf
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
8+
useCompareNetObjects: true
9+
disallowAdditionalPropertiesIfNotPresent: false
10+
nullableReferenceTypes: true
11+
equatable: true
12+
targetFramework: net10.0
13+
modelPropertySorting: alphabetical
14+
operationParameterSorting: alphabetical
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOf
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
8+
useCompareNetObjects: true
9+
disallowAdditionalPropertiesIfNotPresent: false
10+
nullableReferenceTypes: true
11+
equatable: true
12+
targetFramework: net10.0
13+
modelPropertySorting: alphabetical
14+
operationParameterSorting: alphabetical
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
8+
useCompareNetObjects: false
9+
disallowAdditionalPropertiesIfNotPresent: false
10+
nullableReferenceTypes: true
11+
equatable: true
12+
targetFramework: net10.0
13+
modelPropertySorting: alphabetical
14+
operationParameterSorting: alphabetical
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/net10/FormModels
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
8+
useCompareNetObjects: true
9+
disallowAdditionalPropertiesIfNotPresent: false
10+
nullableReferenceTypes: false
11+
equatable: true
12+
targetFramework: net10.0
13+
skipFormModel: false
14+
modelPropertySorting: alphabetical
15+
operationParameterSorting: alphabetical
16+
inlineSchemaOptions:
17+
RESOLVE_INLINE_ENUMS: true

0 commit comments

Comments
 (0)