Skip to content

Commit e26eeef

Browse files
committed
Merge branch 'master' into support_anyof_allof
2 parents da14886 + dc0d5c6 commit e26eeef

File tree

1,419 files changed

+35764
-13077
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,419 files changed

+35764
-13077
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Samples Clojure Client
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/clojure/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/clojure/**
10+
jobs:
11+
build:
12+
name: Build Clojure Client (JDK11)
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
- samples/client/petstore/clojure/
19+
services:
20+
petstore-api:
21+
image: swaggerapi/petstore
22+
ports:
23+
- 80:8080
24+
env:
25+
SWAGGER_HOST: http://petstore.swagger.io
26+
SWAGGER_BASE_PATH: /v2
27+
steps:
28+
- uses: actions/checkout@v5
29+
- name: Add hosts to /etc/hosts
30+
run: |
31+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
32+
- uses: actions/setup-java@v5
33+
with:
34+
distribution: 'temurin'
35+
java-version: 11
36+
- name: Cache maven dependencies
37+
uses: actions/cache@v4
38+
env:
39+
cache-name: maven-repository
40+
with:
41+
path: |
42+
~/.m2
43+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
44+
- name: Install Leiningen (if using Leiningen)
45+
run: |
46+
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein
47+
chmod +x lein
48+
sudo mv lein /usr/local/bin/
49+
- name: Run tests (Leiningen)
50+
working-directory: ${{ matrix.sample }}
51+
run: lein test

.github/workflows/samples-dart-build-test.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ on:
44
push:
55
branches:
66
paths:
7-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
7+
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/**
88
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
9-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
9+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
10+
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
1011
- samples/openapi3/client/petstore/dart-dio/oneof/**
1112
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
1213
- samples/openapi3/client/petstore/dart-dio/binary_response/**
14+
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/**
1315
pull_request:
1416
paths:
15-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
17+
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/**
1618
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
17-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
19+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
20+
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
1821
- samples/openapi3/client/petstore/dart-dio/oneof/**
1922
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
2023
- samples/openapi3/client/petstore/dart-dio/binary_response/**
24+
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/**
2125

2226
jobs:
2327
test:
@@ -27,12 +31,14 @@ jobs:
2731
os: [ubuntu-latest, windows-latest]
2832
sdk: ["3.9.0"]
2933
sample:
30-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
34+
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/
3135
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/
32-
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/
36+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
37+
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/
3338
- samples/openapi3/client/petstore/dart-dio/oneof/
3439
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/
3540
- samples/openapi3/client/petstore/dart-dio/binary_response/
41+
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/
3642
steps:
3743
- uses: actions/checkout@v5
3844

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Samples C# .Net Client (Petstore)
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/csharp/restsharp/standard2.0/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/standard2.0/Petstore/
27+
steps:
28+
- uses: actions/checkout@v5
29+
- uses: actions/[email protected]
30+
with:
31+
dotnet-version: '7.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: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Samples C# .Net 7 Client
2+
3+
on:
4+
push:
5+
paths:
6+
# the .NET Core 3.0 runtime is no longer supported as it reached its end-of-life on March 3, 2020
7+
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
8+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
9+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
10+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
11+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
12+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
13+
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
14+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
15+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
16+
pull_request:
17+
paths:
18+
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
19+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
20+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
21+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
22+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
23+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
24+
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
25+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
26+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
27+
jobs:
28+
build:
29+
name: Build clients
30+
runs-on: windows-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
sample:
35+
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/
36+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/
37+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/
38+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/
39+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
40+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/
41+
- samples/client/petstore/csharp/restsharp/net8/Petstore/
42+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/
43+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
44+
steps:
45+
- uses: actions/checkout@v5
46+
- uses: actions/[email protected]
47+
with:
48+
dotnet-version: '7.0.x'
49+
- name: Build
50+
working-directory: ${{ matrix.sample }}
51+
run: dotnet build Org.OpenAPITools.sln
52+
- name: Test
53+
working-directory: ${{ matrix.sample }}
54+
run: dotnet test Org.OpenAPITools.sln

.github/workflows/samples-dotnet9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
4444
# httpclient
4545
- samples/client/petstore/csharp/httpclient/net9/Petstore
46+
- samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi
4647
# unity
4748
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
4849
steps:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Samples Go Clients (Petstore)
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/go/**
7+
- samples/openapi3/client/petstore/go/**
8+
pull_request:
9+
paths:
10+
- samples/client/petstore/go/**
11+
- samples/openapi3/client/petstore/go/**
12+
13+
jobs:
14+
build:
15+
name: Build Go
16+
runs-on: ubuntu-latest
17+
services:
18+
petstore-api:
19+
image: swaggerapi/petstore
20+
ports:
21+
- 80:8080
22+
env:
23+
SWAGGER_HOST: http://petstore.swagger.io
24+
SWAGGER_BASE_PATH: /v2
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
sample:
29+
- samples/client/petstore/go/
30+
- samples/openapi3/client/petstore/go/
31+
steps:
32+
- uses: actions/checkout@v5
33+
- name: Add hosts to /etc/hosts
34+
run: |
35+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
36+
- uses: actions/setup-go@v6
37+
- run: go version
38+
- name: Install Dependencies
39+
working-directory: ${{ matrix.sample }}
40+
run: |
41+
go mod tidy
42+
- name: Run test
43+
working-directory: ${{ matrix.sample }}
44+
run: go test -mod=mod -v
45+

.github/workflows/samples-go-client.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ on:
66
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
77
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
88
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
9+
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
10+
- samples/client/others/go/oneof-anyof-required/**
11+
- samples/client/others/go/oneof-discriminator-lookup/**
912
pull_request:
1013
paths:
1114
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
1215
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
1316
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
14-
17+
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
18+
- samples/client/others/go/oneof-anyof-required/**
19+
- samples/client/others/go/oneof-discriminator-lookup/**
1520
jobs:
1621
build:
1722
name: Build Go
@@ -23,6 +28,9 @@ jobs:
2328
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
2429
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
2530
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/
31+
- samples/client/others/go/allof_multiple_ref_and_discriminator/
32+
- samples/client/others/go/oneof-anyof-required/
33+
- samples/client/others/go/oneof-discriminator-lookup/
2634
steps:
2735
- uses: actions/checkout@v5
2836
- uses: actions/setup-go@v6

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths:
66
- 'samples/client/petstore/java/**'
77
- samples/client/petstore/jaxrs-cxf-client/**
8+
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
89
- samples/client/petstore/java-micronaut-client/**
910
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
1011
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
@@ -17,12 +18,17 @@ on:
1718
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1819
- samples/client/others/java/jersey2-oneOf-duplicates/**
1920
- samples/client/others/java/jersey2-oneOf-Mixed/**
21+
- samples/client/petstore/java/jersey3-oneOf/**
22+
- samples/client/others/java/okhttp-gson-streaming/**
23+
- samples/client/others/java/resteasy/**
24+
- samples/client/others/java/apache-httpclient/**
2025
- samples/client/others/java/resttemplate-list-schema-validation/**
2126
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
2227
pull_request:
2328
paths:
2429
- 'samples/client/petstore/java/**'
2530
- samples/client/petstore/jaxrs-cxf-client/**
31+
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
2632
- samples/client/petstore/java-micronaut-client/**
2733
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
2834
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
@@ -35,6 +41,10 @@ on:
3541
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
3642
- samples/client/others/java/jersey2-oneOf-duplicates/**
3743
- samples/client/others/java/jersey2-oneOf-Mixed/**
44+
- samples/client/petstore/java/jersey3-oneOf/**
45+
- samples/client/others/java/okhttp-gson-streaming/**
46+
- samples/client/others/java/resteasy/**
47+
- samples/client/others/java/apache-httpclient/**
3848
- samples/client/others/java/resttemplate-list-schema-validation/**
3949
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
4050
jobs:
@@ -46,6 +56,7 @@ jobs:
4656
matrix:
4757
sample:
4858
# clients
59+
- samples/client/petstore/jaxrs-cxf-client-swagger2
4960
- samples/client/petstore/jaxrs-cxf-client
5061
- samples/client/petstore/java/native
5162
- samples/client/petstore/java/native-async
@@ -97,6 +108,10 @@ jobs:
97108
- samples/client/others/java/jersey2-oneOf-Mixed/
98109
- samples/client/others/java/resttemplate-list-schema-validation/
99110
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
111+
- samples/client/petstore/java/jersey3-oneOf/
112+
- samples/client/others/java/okhttp-gson-streaming/
113+
- samples/client/petstore/java/resteasy/
114+
- samples/client/petstore/java/apache-httpclient/
100115
steps:
101116
- uses: actions/checkout@v5
102117
- uses: actions/setup-java@v5
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Samples Java Dubbo
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/server/petstore/java-dubbo/**'
7+
pull_request:
8+
paths:
9+
- 'samples/server/petstore/java-dubbo/**'
10+
11+
jobs:
12+
build:
13+
name: Build Java Dubbo
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sample:
19+
# servers
20+
- samples/server/petstore/java-dubbo
21+
steps:
22+
- uses: actions/checkout@v5
23+
- uses: actions/setup-java@v5
24+
with:
25+
distribution: 'temurin'
26+
java-version: 17
27+
- name: Cache maven dependencies
28+
uses: actions/cache@v4
29+
env:
30+
cache-name: maven-repository
31+
with:
32+
path: |
33+
~/.m2
34+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
35+
- name: Build
36+
working-directory: ${{ matrix.sample }}
37+
run: mvn clean package --no-transfer-progress -DskipTests
38+
# add -DskipTests as the app compiles but fails to start
39+
#run: mvn clean package --no-transfer-progress

0 commit comments

Comments
 (0)