Skip to content

Commit 75de51c

Browse files
committed
add new sample due to HttpClient library not working with the new models
1 parent 8abec7f commit 75de51c

51 files changed

Lines changed: 3260 additions & 14 deletions

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-dotnet9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
sample:
26+
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
2627
- samples/client/petstore/csharp/generichost/latest/Tags
2728
- samples/client/petstore/csharp/generichost/latest/HelloWorld
2829
- samples/client/petstore/csharp/generichost/latest/OneOfList
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# for csharp generichost
2+
generatorName: csharp
3+
outputDir: samples/client/petstore/csharp/generichost/latest/ComposedEnum
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/composed-enum.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/csharp
6+
additionalProperties:
7+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
8+
modelPropertySorting: alphabetical
9+
operationParameterSorting: alphabetical
10+
validateSpec: false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
openapi: 3.0.0
2+
components:
3+
schemas:
4+
AreaCode:
5+
oneOf:
6+
- $ref: '#/components/schemas/StateTerritoryCode'
7+
- $ref: '#/components/schemas/MarineAreaCode'
8+
StateTerritoryCode:
9+
enum:
10+
- AL
11+
- AK
12+
type: string
13+
MarineAreaCode:
14+
enum:
15+
- AM
16+
- AN
17+
type: string

modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,17 +2948,3 @@ components:
29482948
enum:
29492949
- APPROVED
29502950
- MANUAL_APPROVAL_REQUIRED
2951-
AreaCode:
2952-
oneOf:
2953-
- $ref: '#/components/schemas/StateTerritoryCode'
2954-
- $ref: '#/components/schemas/MarineAreaCode'
2955-
StateTerritoryCode:
2956-
enum:
2957-
- AL
2958-
- AK
2959-
type: string
2960-
MarineAreaCode:
2961-
enum:
2962-
- AM
2963-
- AN
2964-
type: string

0 commit comments

Comments
 (0)