Skip to content

Commit 910792b

Browse files
wing328Goopher Maijenburg
authored andcommitted
Improve Go client tests (#21919)
* test withXml option * fix path * update go code (withXml: true) * test one more go client
1 parent 25b5c8f commit 910792b

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
paths:
66
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
77
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
8+
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
89
pull_request:
910
paths:
1011
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
1112
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
13+
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
1214

1315
jobs:
1416
build:
@@ -20,6 +22,7 @@ jobs:
2022
sample:
2123
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
2224
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
25+
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/
2326
steps:
2427
- uses: actions/checkout@v5
2528
- uses: actions/setup-go@v6

bin/configs/go-petstore-withXml.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ additionalProperties:
66
enumClassPrefix: "true"
77
packageName: petstore
88
disallowAdditionalPropertiesIfNotPresent: false
9-
withXml: false
9+
withXml: true

samples/openapi3/client/petstore/go-petstore-withXml/model_category.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/go-petstore-withXml/model_pet.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/go-petstore-withXml/model_tag.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)