-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add .net9 support * fixed path of new sample * comment out manual test that does not exist * comment out manual test that does not exist * comment out manual test that does not exist
- Loading branch information
1 parent
401c8d0
commit 5ba608f
Showing
1,771 changed files
with
270,485 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Samples C# .Net 9 Clients | ||
|
||
on: | ||
push: | ||
paths: | ||
- samples/client/petstore/csharp/generichost/latest/** | ||
- samples/client/petstore/csharp/generichost/net9/** | ||
- samples/client/petstore/csharp/httpclient/net9/** | ||
- samples/client/petstore/csharp/restsharp/net9/** | ||
- samples/client/petstore/csharp/unityWebRequest/net9/** | ||
pull_request: | ||
paths: | ||
- samples/client/petstore/csharp/generichost/latest/** | ||
- samples/client/petstore/csharp/generichost/net9/** | ||
- samples/client/petstore/csharp/httpclient/net9/** | ||
- samples/client/petstore/csharp/restsharp/net9/** | ||
- samples/client/petstore/csharp/unityWebRequest/net9/** | ||
jobs: | ||
build: | ||
name: Build .Net projects | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
- samples/client/petstore/csharp/generichost/latest/Tags | ||
- samples/client/petstore/csharp/generichost/net9/AllOf | ||
- samples/client/petstore/csharp/generichost/net9/AnyOf | ||
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare | ||
- samples/client/petstore/csharp/generichost/net9/FormModels | ||
# - samples/client/petstore/csharp/generichost/net9/ManualPetstoreTests | ||
# - samples/client/petstore/csharp/generichost/net9/ManualSourceGenerationTests | ||
- samples/client/petstore/csharp/generichost/net9/NullReferenceTypes | ||
- samples/client/petstore/csharp/generichost/net9/OneOf | ||
- samples/client/petstore/csharp/generichost/net9/Petstore | ||
- samples/client/petstore/csharp/generichost/net9/SourceGeneration | ||
- samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: '9.0.101' | ||
- name: Build | ||
working-directory: ${{ matrix.sample }} | ||
run: dotnet build Org.OpenAPITools.sln | ||
- name: Test | ||
working-directory: ${{ matrix.sample }} | ||
run: dotnet test Org.OpenAPITools.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/AllOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/AnyOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: false | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/FormModels | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net9.0 | ||
skipFormModel: false | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical | ||
inlineSchemaOptions: | ||
RESOLVE_INLINE_ENUMS: true |
15 changes: 15 additions & 0 deletions
15
bin/configs/csharp-generichost-net9-nrt-useSourceGeneration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/SourceGeneration | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
useSourceGeneration: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/NullReferenceTypes | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/OneOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: true | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
12 changes: 12 additions & 0 deletions
12
bin/configs/csharp-generichost-net9-useDateTimeForDate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}' | ||
useDateTimeForDate: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for csharp generichost | ||
generatorName: csharp | ||
outputDir: samples/client/petstore/csharp/generichost/net9/Petstore | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml | ||
library: generichost | ||
templateDir: modules/openapi-generator/src/main/resources/csharp | ||
additionalProperties: | ||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' | ||
useCompareNetObjects: true | ||
disallowAdditionalPropertiesIfNotPresent: false | ||
nullableReferenceTypes: false | ||
equatable: true | ||
targetFramework: net9.0 | ||
modelPropertySorting: alphabetical | ||
operationParameterSorting: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.