Skip to content

Commit 2cf28a9

Browse files
committed
added .net10
1 parent 592c262 commit 2cf28a9

3,020 files changed

Lines changed: 432218 additions & 164 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.
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 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.0
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-dotnet9.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ 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/**
@@ -23,11 +21,6 @@ jobs:
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
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.0/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.0/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.0/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.0/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
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.0/SourceGeneration
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+
useSourceGeneration: 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.0/NullReferenceTypes
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: 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.0/OneOf
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/net10.0/UseDateTimeForDate
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}'
8+
useDateTimeForDate: true
9+
targetFramework: net10.0
10+
modelPropertySorting: alphabetical
11+
operationParameterSorting: alphabetical

0 commit comments

Comments
 (0)