Skip to content

Commit 93ba9fd

Browse files
wing328timon-sbr
authored andcommitted
Add more net9 samples (OpenAPITools#20491)
* add restsharp net9 samples * add httpclient net9 samples * add unity net9 samples * update workflow * comment out unity test
1 parent d5b320a commit 93ba9fd

File tree

1,018 files changed

+154357
-0
lines changed

Some content is hidden

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

1,018 files changed

+154357
-0
lines changed

.github/workflows/samples-dotnet9.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
- samples/client/petstore/csharp/generichost/net9/Petstore
3636
- samples/client/petstore/csharp/generichost/net9/SourceGeneration
3737
- samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate
38+
# restsharp
39+
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
40+
# httpclient
41+
- samples/client/petstore/csharp/httpclient/net9/Petstore
42+
# unity
43+
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
3844
steps:
3945
- uses: actions/checkout@v4
4046
- uses: actions/setup-dotnet@v4.2.0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# for .net standard httpclient
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/httpclient/net9/Petstore
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+
library: httpclient
7+
additionalProperties:
8+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
9+
useCompareNetObjects: true
10+
disallowAdditionalPropertiesIfNotPresent: false
11+
useOneOfDiscriminatorLookup: true
12+
targetFramework: net9.0
13+
equatable: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# for .net standard
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/restsharp/net9/EnumMappings
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.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+
useOneOfDiscriminatorLookup: true
11+
targetFramework: net9.0
12+
equatable: true
13+
enumNameMappings:
14+
delivered: Shipped
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# for .net Unity
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/unityWebRequest/net9/Petstore
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+
library: unityWebRequest
7+
additionalProperties:
8+
targetFramework: net9.0
9+
equatable: true

0 commit comments

Comments
 (0)