Skip to content

Commit 3eb74a2

Browse files
committed
chore(go): update generated code
1 parent f51c2ff commit 3eb74a2

Some content is hidden

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

80 files changed

+668
-773
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ docs/HeaderAPI.md
2121
docs/NumberPropertiesOnly.md
2222
docs/PathAPI.md
2323
docs/Pet.md
24-
docs/PetStatus.md
2524
docs/Query.md
2625
docs/QueryAPI.md
27-
docs/QueryOutcomesInner.md
2826
docs/StringEnumRef.md
2927
docs/Tag.md
3028
docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
3129
docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
32-
docs/TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md
3330
git_push.sh
3431
go.mod
3532
go.sum
@@ -39,13 +36,10 @@ model_data_query.go
3936
model_default_value.go
4037
model_number_properties_only.go
4138
model_pet.go
42-
model_pet_status.go
4339
model_query.go
44-
model_query_outcomes_inner.go
4540
model_string_enum_ref.go
4641
model_tag.go
4742
model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go
4843
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
5044
response.go
5145
utils.go

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,11 @@ 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)
117116
- [Query](docs/Query.md)
118-
- [QueryOutcomesInner](docs/QueryOutcomesInner.md)
119117
- [StringEnumRef](docs/StringEnumRef.md)
120118
- [Tag](docs/Tag.md)
121119
- [TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter](docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md)
122120
- [TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter](docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md)
123-
- [TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter](docs/TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md)
124121

125122

126123
## Documentation For Authorization

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

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ paths:
3535
name: enum_nonref_string_path
3636
required: true
3737
schema:
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"
38+
enum:
39+
- success
40+
- failure
41+
- unclassified
42+
type: string
3943
style: simple
4044
- explode: false
4145
in: path
@@ -123,7 +127,11 @@ paths:
123127
name: enum_nonref_string_header
124128
required: false
125129
schema:
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"
130+
enum:
131+
- success
132+
- failure
133+
- unclassified
134+
type: string
127135
style: form
128136
- explode: true
129137
in: header
@@ -152,7 +160,11 @@ paths:
152160
name: enum_nonref_string_query
153161
required: false
154162
schema:
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"
163+
enum:
164+
- success
165+
- failure
166+
- unclassified
167+
type: string
156168
style: form
157169
- explode: true
158170
in: query
@@ -683,7 +695,12 @@ components:
683695
xml:
684696
wrapped: true
685697
status:
686-
$ref: "#/components/schemas/Pet_status"
698+
description: pet status in the store
699+
enum:
700+
- available
701+
- pending
702+
- sold
703+
type: string
687704
required:
688705
- name
689706
- photoUrls
@@ -711,7 +728,11 @@ components:
711728
- success
712729
- failure
713730
items:
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"
731+
enum:
732+
- success
733+
- failure
734+
- unclassified
735+
type: string
715736
type: array
716737
array_string_default:
717738
default:
@@ -763,7 +784,11 @@ components:
763784
- SUCCESS
764785
- FAILURE
765786
items:
766-
$ref: "#/components/schemas/Query_outcomes_inner"
787+
enum:
788+
- SUCCESS
789+
- FAILURE
790+
- SKIPPED
791+
type: string
767792
type: array
768793
type: object
769794
x-parent: true
@@ -852,25 +877,6 @@ components:
852877
required:
853878
- files
854879
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
874880
securitySchemes:
875881
http_auth:
876882
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 [**[]TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md) | | [optional] [default to ["success","failure"]]
8+
**ArrayStringEnumDefault** | Pointer to **[]string** | | [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() []TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter`
62+
`func (o *DefaultValue) GetArrayStringEnumDefault() []string`
6363

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

6666
### GetArrayStringEnumDefaultOk
6767

68-
`func (o *DefaultValue) GetArrayStringEnumDefaultOk() (*[]TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter, bool)`
68+
`func (o *DefaultValue) GetArrayStringEnumDefaultOk() (*[]string, 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 []TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter)`
75+
`func (o *DefaultValue) SetArrayStringEnumDefault(v []string)`
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 := 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)
35+
enumNonrefStringHeader := "enumNonrefStringHeader_example" // string | (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** | [**TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter.md) | |
64+
**enumNonrefStringHeader** | **string** | |
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 := openapiclient.tests_path_string__path_string__integer__path_integer___enum_nonref_string_path___enum_ref_string_path__enum_nonref_string_path_parameter("success") // TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter |
34+
enumNonrefStringPath := "enumNonrefStringPath_example" // string |
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** | [**TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathParameter**](.md) | |
57+
**enumNonrefStringPath** | **string** | |
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 [**PetStatus**](PetStatus.md) | | [optional]
12+
**Status** | Pointer to **string** | pet status in the store | [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() PetStatus`
150+
`func (o *Pet) GetStatus() string`
151151

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

154154
### GetStatusOk
155155

156-
`func (o *Pet) GetStatusOk() (*PetStatus, bool)`
156+
`func (o *Pet) GetStatusOk() (*string, 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 PetStatus)`
163+
`func (o *Pet) SetStatus(v string)`
164164

165165
SetStatus sets Status field to given value.
166166

0 commit comments

Comments
 (0)