Skip to content

Commit abdb58e

Browse files
committed
add new files
1 parent 5548c42 commit abdb58e

365 files changed

Lines changed: 53675 additions & 0 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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Samples C# .Net 10 Client (Petstore)
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/csharp/restsharp/net10/Petstore/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/csharp/restsharp/net10/Petstore/**
10+
jobs:
11+
build:
12+
name: Build clients
13+
runs-on: ubuntu-latest
14+
services:
15+
petstore-api:
16+
image: swaggerapi/petstore
17+
ports:
18+
- 80:8080
19+
env:
20+
SWAGGER_HOST: http://petstore.swagger.io
21+
SWAGGER_BASE_PATH: /v2
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
sample:
26+
- samples/client/petstore/csharp/restsharp/net10/Petstore/
27+
steps:
28+
- uses: actions/checkout@v5
29+
- uses: actions/setup-dotnet@v5.2.0
30+
with:
31+
dotnet-version: '10.0.x'
32+
- name: Build
33+
working-directory: ${{ matrix.sample }}
34+
run: dotnet build Org.OpenAPITools.sln
35+
- name: Test
36+
working-directory: ${{ matrix.sample }}
37+
run: dotnet test Org.OpenAPITools.sln
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# for .net standard
2+
generatorName: csharp
3+
library: restsharp
4+
outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
5+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
6+
templateDir: modules/openapi-generator/src/main/resources/csharp
7+
additionalProperties:
8+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
9+
useCompareNetObjects: true
10+
disallowAdditionalPropertiesIfNotPresent: false
11+
useOneOfDiscriminatorLookup: true
12+
targetFramework: net10.0
13+
equatable: true
14+
enumNameMappings:
15+
delivered: Shipped

0 commit comments

Comments
 (0)