Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 1.109.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 1, 2023
1 parent 890341b commit 94fc616
Show file tree
Hide file tree
Showing 30 changed files with 182 additions and 172 deletions.
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -925,4 +925,14 @@ Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.0.2] python-client-sdk
- [python v2.0.2] python-client-sdk

## 2023-11-01 00:12:51
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.109.2 (2.173.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v1.39.2] go-client-sdk
### Releases
- [Go v1.39.2] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.39.2 - go-client-sdk
8 changes: 4 additions & 4 deletions go-client-sdk/docs/sdks/parameters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ func main() {
}

mapParamExploded := map[string]int64{
"test2": 2,
"test": 1,
"test2": 2,
}

ctx := context.Background()
Expand Down Expand Up @@ -990,7 +990,7 @@ func main() {
Bool: true,
Int: 1,
Map: map[string]shared.SimpleObject{
"key2": shared.SimpleObject{
"key": shared.SimpleObject{
Any: "any",
Bigint: big.NewInt(8821239038968084),
BigintStr: types.MustNewBigIntFromString("9223372036854775808"),
Expand All @@ -1010,7 +1010,7 @@ func main() {
Str: "test",
StrOpt: openapi.String("testOptional"),
},
"key": shared.SimpleObject{
"key2": shared.SimpleObject{
Any: "any",
Bigint: big.NewInt(8821239038968084),
BigintStr: types.MustNewBigIntFromString("9223372036854775808"),
Expand Down Expand Up @@ -1441,8 +1441,8 @@ func main() {
}

mapParam := map[string]string{
"key1": "val1",
"key2": "val2",
"key1": "val1",
}

objParam := &shared.SimpleObject{
Expand Down
4 changes: 2 additions & 2 deletions go-client-sdk/docs/sdks/requestbodies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,7 @@ func main() {
Bool: true,
Int: 1,
Map: map[string]shared.SimpleObject{
"key2": shared.SimpleObject{
"key": shared.SimpleObject{
Any: "any",
Bigint: big.NewInt(8821239038968084),
BigintStr: types.MustNewBigIntFromString("9223372036854775808"),
Expand All @@ -2465,7 +2465,7 @@ func main() {
Str: "test",
StrOpt: openapi.String("testOptional"),
},
"key": shared.SimpleObject{
"key2": shared.SimpleObject{
Any: "any",
Bigint: big.NewInt(8821239038968084),
BigintStr: types.MustNewBigIntFromString("9223372036854775808"),
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d
docVersion: 0.1.0
speakeasyVersion: 1.108.1
generationVersion: 2.172.4
speakeasyVersion: 1.109.2
generationVersion: 2.173.0
generation:
repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git
sdkClassName: SDK
Expand Down Expand Up @@ -34,9 +34,9 @@ features:
retries: 2.82.1
serverIDs: 2.81.1
tests: 0.0.0
unions: 2.84.0
unions: 2.84.1
go:
version: 1.39.1
version: 1.39.2
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
installationURL: https://github.com/speakeasy-api/openapi-generation-tests/go-client-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func CreateDeepObjectQueryParamsMapResArgsArrayOfstr(arrayOfstr []string) DeepOb

func (u *DeepObjectQueryParamsMapResArgs) UnmarshalJSON(data []byte) error {

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = DeepObjectQueryParamsMapResArgsTypeStr
return nil
}
Expand Down
24 changes: 12 additions & 12 deletions go-client-sdk/pkg/models/operations/mixedtypeoneofpost.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ func CreateMixedTypeOneOfPostRequestBodySimpleObject(simpleObject shared.SimpleO

func (u *MixedTypeOneOfPostRequestBody) UnmarshalJSON(data []byte) error {

simpleObject := new(shared.SimpleObject)
simpleObject := shared.SimpleObject{}
if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil {
u.SimpleObject = simpleObject
u.SimpleObject = &simpleObject
u.Type = MixedTypeOneOfPostRequestBodyTypeSimpleObject
return nil
}

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = MixedTypeOneOfPostRequestBodyTypeStr
return nil
}

integer := new(int64)
integer := int64(0)
if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil {
u.Integer = integer
u.Integer = &integer
u.Type = MixedTypeOneOfPostRequestBodyTypeInteger
return nil
}
Expand Down Expand Up @@ -139,23 +139,23 @@ func CreateMixedTypeOneOfPostResJSONSimpleObject(simpleObject shared.SimpleObjec

func (u *MixedTypeOneOfPostResJSON) UnmarshalJSON(data []byte) error {

simpleObject := new(shared.SimpleObject)
simpleObject := shared.SimpleObject{}
if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil {
u.SimpleObject = simpleObject
u.SimpleObject = &simpleObject
u.Type = MixedTypeOneOfPostResJSONTypeSimpleObject
return nil
}

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = MixedTypeOneOfPostResJSONTypeStr
return nil
}

integer := new(int64)
integer := int64(0)
if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil {
u.Integer = integer
u.Integer = &integer
u.Type = MixedTypeOneOfPostResJSONTypeInteger
return nil
}
Expand Down
16 changes: 8 additions & 8 deletions go-client-sdk/pkg/models/operations/nullableoneofschemapost.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ func CreateNullableOneOfSchemaPostRequestBodyTypedObject2(typedObject2 shared.Ty

func (u *NullableOneOfSchemaPostRequestBody) UnmarshalJSON(data []byte) error {

typedObject1 := new(shared.TypedObject1)
typedObject1 := shared.TypedObject1{}
if err := utils.UnmarshalJSON(data, &typedObject1, "", true, true); err == nil {
u.TypedObject1 = typedObject1
u.TypedObject1 = &typedObject1
u.Type = NullableOneOfSchemaPostRequestBodyTypeTypedObject1
return nil
}

typedObject2 := new(shared.TypedObject2)
typedObject2 := shared.TypedObject2{}
if err := utils.UnmarshalJSON(data, &typedObject2, "", true, true); err == nil {
u.TypedObject2 = typedObject2
u.TypedObject2 = &typedObject2
u.Type = NullableOneOfSchemaPostRequestBodyTypeTypedObject2
return nil
}
Expand Down Expand Up @@ -106,16 +106,16 @@ func CreateNullableOneOfSchemaPostResJSONTypedObject2(typedObject2 shared.TypedO

func (u *NullableOneOfSchemaPostResJSON) UnmarshalJSON(data []byte) error {

typedObject1 := new(shared.TypedObject1)
typedObject1 := shared.TypedObject1{}
if err := utils.UnmarshalJSON(data, &typedObject1, "", true, true); err == nil {
u.TypedObject1 = typedObject1
u.TypedObject1 = &typedObject1
u.Type = NullableOneOfSchemaPostResJSONTypeTypedObject1
return nil
}

typedObject2 := new(shared.TypedObject2)
typedObject2 := shared.TypedObject2{}
if err := utils.UnmarshalJSON(data, &typedObject2, "", true, true); err == nil {
u.TypedObject2 = typedObject2
u.TypedObject2 = &typedObject2
u.Type = NullableOneOfSchemaPostResJSONTypeTypedObject2
return nil
}
Expand Down
32 changes: 16 additions & 16 deletions go-client-sdk/pkg/models/operations/primitivetypeoneofpost.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,30 @@ func CreatePrimitiveTypeOneOfPostRequestBodyBoolean(boolean bool) PrimitiveTypeO

func (u *PrimitiveTypeOneOfPostRequestBody) UnmarshalJSON(data []byte) error {

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = PrimitiveTypeOneOfPostRequestBodyTypeStr
return nil
}

integer := new(int64)
integer := int64(0)
if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil {
u.Integer = integer
u.Integer = &integer
u.Type = PrimitiveTypeOneOfPostRequestBodyTypeInteger
return nil
}

number := new(float64)
number := float64(0)
if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil {
u.Number = number
u.Number = &number
u.Type = PrimitiveTypeOneOfPostRequestBodyTypeNumber
return nil
}

boolean := new(bool)
boolean := false
if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil {
u.Boolean = boolean
u.Boolean = &boolean
u.Type = PrimitiveTypeOneOfPostRequestBodyTypeBoolean
return nil
}
Expand Down Expand Up @@ -171,30 +171,30 @@ func CreatePrimitiveTypeOneOfPostResJSONBoolean(boolean bool) PrimitiveTypeOneOf

func (u *PrimitiveTypeOneOfPostResJSON) UnmarshalJSON(data []byte) error {

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = PrimitiveTypeOneOfPostResJSONTypeStr
return nil
}

integer := new(int64)
integer := int64(0)
if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil {
u.Integer = integer
u.Integer = &integer
u.Type = PrimitiveTypeOneOfPostResJSONTypeInteger
return nil
}

number := new(float64)
number := float64(0)
if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil {
u.Number = number
u.Number = &number
u.Type = PrimitiveTypeOneOfPostResJSONTypeNumber
return nil
}

boolean := new(bool)
boolean := false
if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil {
u.Boolean = boolean
u.Boolean = &boolean
u.Type = PrimitiveTypeOneOfPostResJSONTypeBoolean
return nil
}
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/pkg/models/shared/deepobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func CreateDeepObjectAnyStr(str string) DeepObjectAny {

func (u *DeepObjectAny) UnmarshalJSON(data []byte) error {

simpleObject := new(SimpleObject)
simpleObject := SimpleObject{}
if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil {
u.SimpleObject = simpleObject
u.SimpleObject = &simpleObject
u.Type = DeepObjectAnyTypeSimpleObject
return nil
}

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = DeepObjectAnyTypeStr
return nil
}
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/pkg/models/shared/deepobjectcamelcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func CreateDeepObjectCamelCaseAnyValStr(str string) DeepObjectCamelCaseAnyVal {

func (u *DeepObjectCamelCaseAnyVal) UnmarshalJSON(data []byte) error {

simpleObjectCamelCase := new(SimpleObjectCamelCase)
simpleObjectCamelCase := SimpleObjectCamelCase{}
if err := utils.UnmarshalJSON(data, &simpleObjectCamelCase, "", true, true); err == nil {
u.SimpleObjectCamelCase = simpleObjectCamelCase
u.SimpleObjectCamelCase = &simpleObjectCamelCase
u.Type = DeepObjectCamelCaseAnyValTypeSimpleObjectCamelCase
return nil
}

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = DeepObjectCamelCaseAnyValTypeStr
return nil
}
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/pkg/models/shared/deepobjectwithtype.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func CreateDeepObjectWithTypeAnyStr(str string) DeepObjectWithTypeAny {

func (u *DeepObjectWithTypeAny) UnmarshalJSON(data []byte) error {

simpleObject := new(SimpleObject)
simpleObject := SimpleObject{}
if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil {
u.SimpleObject = simpleObject
u.SimpleObject = &simpleObject
u.Type = DeepObjectWithTypeAnyTypeSimpleObject
return nil
}

str := new(string)
str := ""
if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil {
u.Str = str
u.Str = &str
u.Type = DeepObjectWithTypeAnyTypeStr
return nil
}
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/pkg/models/shared/examplevehicle.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func CreateExampleVehicleExampleCar(exampleCar ExampleCar) ExampleVehicle {

func (u *ExampleVehicle) UnmarshalJSON(data []byte) error {

exampleBoat := new(ExampleBoat)
exampleBoat := ExampleBoat{}
if err := utils.UnmarshalJSON(data, &exampleBoat, "", true, true); err == nil {
u.ExampleBoat = exampleBoat
u.ExampleBoat = &exampleBoat
u.Type = ExampleVehicleTypeExampleBoat
return nil
}

exampleCar := new(ExampleCar)
exampleCar := ExampleCar{}
if err := utils.UnmarshalJSON(data, &exampleCar, "", true, true); err == nil {
u.ExampleCar = exampleCar
u.ExampleCar = &exampleCar
u.Type = ExampleVehicleTypeExampleCar
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions go-client-sdk/pkg/models/shared/flattenedtypedobject1.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func CreateFlattenedTypedObject1TypedObject1(typedObject1 TypedObject1) Flattene

func (u *FlattenedTypedObject1) UnmarshalJSON(data []byte) error {

typedObject1 := new(TypedObject1)
typedObject1 := TypedObject1{}
if err := utils.UnmarshalJSON(data, &typedObject1, "", true, true); err == nil {
u.TypedObject1 = typedObject1
u.TypedObject1 = &typedObject1
u.Type = FlattenedTypedObject1TypeTypedObject1
return nil
}
Expand Down
Loading

0 comments on commit 94fc616

Please sign in to comment.