Skip to content

Commit f4f57d9

Browse files
committed
chore(go): update generated code
./mvnw clean package || exit ./bin/generate-samples.sh ./bin/configs/*.yaml || exit ./bin/utils/export_docs_generators.sh || exit
1 parent 34201c3 commit f4f57d9

File tree

152 files changed

+5327
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+5327
-668
lines changed

samples/client/echo_api/go-external-refs/.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ docs/HeaderAPI.md
2121
docs/NumberPropertiesOnly.md
2222
docs/PathAPI.md
2323
docs/Pet.md
24+
docs/PetStatus.md
2425
docs/Query.md
2526
docs/QueryAPI.md
27+
docs/QueryOutcomesInner.md
2628
docs/StringEnumRef.md
2729
docs/Tag.md
2830
docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
2931
docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
32+
docs/TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md
3033
git_push.sh
3134
go.mod
3235
go.sum
@@ -36,10 +39,13 @@ model_data_query.go
3639
model_default_value.go
3740
model_number_properties_only.go
3841
model_pet.go
42+
model_pet_status.go
3943
model_query.go
44+
model_query_outcomes_inner.go
4045
model_string_enum_ref.go
4146
model_tag.go
4247
model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go
4348
model_test_query_style_form_explode_true_array_string_query_object_parameter.go
49+
model_tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter.go
4450
response.go
4551
utils.go

samples/client/echo_api/go-external-refs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ Class | Method | HTTP request | Description
113113
- [DefaultValue](docs/DefaultValue.md)
114114
- [NumberPropertiesOnly](docs/NumberPropertiesOnly.md)
115115
- [Pet](docs/Pet.md)
116+
- [PetStatus](docs/PetStatus.md)
116117
- [Query](docs/Query.md)
118+
- [QueryOutcomesInner](docs/QueryOutcomesInner.md)
117119
- [StringEnumRef](docs/StringEnumRef.md)
118120
- [Tag](docs/Tag.md)
119121
- [TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter](docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md)
120122
- [TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter](docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md)
123+
- [TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter](docs/TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md)
121124

122125

123126
## Documentation For Authorization

samples/client/echo_api/go-external-refs/api/openapi.yaml

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ paths:
3535
name: enum_nonref_string_path
3636
required: true
3737
schema:
38-
enum:
39-
- success
40-
- failure
41-
- unclassified
42-
type: string
38+
$ref: "#/components/schemas/tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter"
4339
style: simple
4440
- explode: false
4541
in: path
@@ -127,11 +123,7 @@ paths:
127123
name: enum_nonref_string_header
128124
required: false
129125
schema:
130-
enum:
131-
- success
132-
- failure
133-
- unclassified
134-
type: string
126+
$ref: "#/components/schemas/tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter"
135127
style: form
136128
- explode: true
137129
in: header
@@ -160,11 +152,7 @@ paths:
160152
name: enum_nonref_string_query
161153
required: false
162154
schema:
163-
enum:
164-
- success
165-
- failure
166-
- unclassified
167-
type: string
155+
$ref: "#/components/schemas/tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter"
168156
style: form
169157
- explode: true
170158
in: query
@@ -695,12 +683,7 @@ components:
695683
xml:
696684
wrapped: true
697685
status:
698-
description: pet status in the store
699-
enum:
700-
- available
701-
- pending
702-
- sold
703-
type: string
686+
$ref: "#/components/schemas/Pet_status"
704687
required:
705688
- name
706689
- photoUrls
@@ -728,11 +711,7 @@ components:
728711
- success
729712
- failure
730713
items:
731-
enum:
732-
- success
733-
- failure
734-
- unclassified
735-
type: string
714+
$ref: "#/components/schemas/tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter"
736715
type: array
737716
array_string_default:
738717
default:
@@ -784,11 +763,7 @@ components:
784763
- SUCCESS
785764
- FAILURE
786765
items:
787-
enum:
788-
- SUCCESS
789-
- FAILURE
790-
- SKIPPED
791-
type: string
766+
$ref: "#/components/schemas/Query_outcomes_inner"
792767
type: array
793768
type: object
794769
x-parent: true
@@ -877,6 +852,25 @@ components:
877852
required:
878853
- files
879854
type: object
855+
? tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter
856+
: enum:
857+
- success
858+
- failure
859+
- unclassified
860+
type: string
861+
Pet_status:
862+
description: pet status in the store
863+
enum:
864+
- available
865+
- pending
866+
- sold
867+
type: string
868+
Query_outcomes_inner:
869+
enum:
870+
- SUCCESS
871+
- FAILURE
872+
- SKIPPED
873+
type: string
880874
securitySchemes:
881875
http_auth:
882876
scheme: basic

samples/client/echo_api/go-external-refs/api_header.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/client/echo_api/go-external-refs/api_path.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/client/echo_api/go-external-refs/api_query.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/client/echo_api/go-external-refs/docs/DefaultValue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**ArrayStringEnumRefDefault** | Pointer to [**[]StringEnumRef**](StringEnumRef.md) | | [optional] [default to ["success","failure"]]
8-
**ArrayStringEnumDefault** | Pointer to **[]string** | | [optional] [default to ["success","failure"]]
8+
**ArrayStringEnumDefault** | Pointer to [**[]TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md) | | [optional] [default to ["success","failure"]]
99
**ArrayStringDefault** | Pointer to **[]string** | | [optional] [default to ["failure","skipped"]]
1010
**ArrayIntegerDefault** | Pointer to **[]int32** | | [optional] [default to [1,3]]
1111
**ArrayString** | Pointer to **[]string** | | [optional]
@@ -59,20 +59,20 @@ HasArrayStringEnumRefDefault returns a boolean if a field has been set.
5959

6060
### GetArrayStringEnumDefault
6161

62-
`func (o *DefaultValue) GetArrayStringEnumDefault() []string`
62+
`func (o *DefaultValue) GetArrayStringEnumDefault() []TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter`
6363

6464
GetArrayStringEnumDefault returns the ArrayStringEnumDefault field if non-nil, zero value otherwise.
6565

6666
### GetArrayStringEnumDefaultOk
6767

68-
`func (o *DefaultValue) GetArrayStringEnumDefaultOk() (*[]string, bool)`
68+
`func (o *DefaultValue) GetArrayStringEnumDefaultOk() (*[]TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter, bool)`
6969

7070
GetArrayStringEnumDefaultOk returns a tuple with the ArrayStringEnumDefault field if it's non-nil, zero value otherwise
7171
and a boolean to check if the value has been set.
7272

7373
### SetArrayStringEnumDefault
7474

75-
`func (o *DefaultValue) SetArrayStringEnumDefault(v []string)`
75+
`func (o *DefaultValue) SetArrayStringEnumDefault(v []TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter)`
7676

7777
SetArrayStringEnumDefault sets ArrayStringEnumDefault field to given value.
7878

samples/client/echo_api/go-external-refs/docs/HeaderAPI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func main() {
3232
integerHeader := int32(56) // int32 | (optional)
3333
booleanHeader := true // bool | (optional)
3434
stringHeader := "stringHeader_example" // string | (optional)
35-
enumNonrefStringHeader := "enumNonrefStringHeader_example" // string | (optional)
35+
enumNonrefStringHeader := openapiclient.tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter("success") // TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter | (optional)
3636
enumRefStringHeader := openapiclient.StringEnumRef("success") // StringEnumRef | (optional)
3737

3838
configuration := openapiclient.NewConfiguration()
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
6161
**integerHeader** | **int32** | |
6262
**booleanHeader** | **bool** | |
6363
**stringHeader** | **string** | |
64-
**enumNonrefStringHeader** | **string** | |
64+
**enumNonrefStringHeader** | [**TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md) | |
6565
**enumRefStringHeader** | [**StringEnumRef**](StringEnumRef.md) | |
6666

6767
### Return type

samples/client/echo_api/go-external-refs/docs/PathAPI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
func main() {
3232
pathString := "pathString_example" // string |
3333
pathInteger := int32(56) // int32 |
34-
enumNonrefStringPath := "enumNonrefStringPath_example" // string |
34+
enumNonrefStringPath := openapiclient.tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter("success") // TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter |
3535
enumRefStringPath := openapiclient.StringEnumRef("success") // StringEnumRef |
3636

3737
configuration := openapiclient.NewConfiguration()
@@ -54,7 +54,7 @@ Name | Type | Description | Notes
5454
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
5555
**pathString** | **string** | |
5656
**pathInteger** | **int32** | |
57-
**enumNonrefStringPath** | **string** | |
57+
**enumNonrefStringPath** | [**TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](.md) | |
5858
**enumRefStringPath** | [**StringEnumRef**](.md) | |
5959

6060
### Other Parameters

samples/client/echo_api/go-external-refs/docs/Pet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**Category** | Pointer to [**Category**](Category.md) | | [optional]
1010
**PhotoUrls** | **[]string** | |
1111
**Tags** | Pointer to [**[]Tag**](Tag.md) | | [optional]
12-
**Status** | Pointer to **string** | pet status in the store | [optional]
12+
**Status** | Pointer to [**PetStatus**](PetStatus.md) | | [optional]
1313

1414
## Methods
1515

@@ -147,20 +147,20 @@ HasTags returns a boolean if a field has been set.
147147

148148
### GetStatus
149149

150-
`func (o *Pet) GetStatus() string`
150+
`func (o *Pet) GetStatus() PetStatus`
151151

152152
GetStatus returns the Status field if non-nil, zero value otherwise.
153153

154154
### GetStatusOk
155155

156-
`func (o *Pet) GetStatusOk() (*string, bool)`
156+
`func (o *Pet) GetStatusOk() (*PetStatus, bool)`
157157

158158
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
159159
and a boolean to check if the value has been set.
160160

161161
### SetStatus
162162

163-
`func (o *Pet) SetStatus(v string)`
163+
`func (o *Pet) SetStatus(v PetStatus)`
164164

165165
SetStatus sets Status field to given value.
166166

0 commit comments

Comments
 (0)