From 94fc616de97cfee90ccb90b3960a216e56c810c9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 1 Nov 2023 00:13:38 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 1.109.2 --- RELEASES.md | 12 +++- go-client-sdk/docs/sdks/parameters/README.md | 8 +-- .../docs/sdks/requestbodies/README.md | 4 +- go-client-sdk/gen.yaml | 8 +-- .../operations/deepobjectqueryparamsmap.go | 4 +- .../models/operations/mixedtypeoneofpost.go | 24 ++++---- .../operations/nullableoneofschemapost.go | 16 +++--- .../operations/primitivetypeoneofpost.go | 32 +++++------ go-client-sdk/pkg/models/shared/deepobject.go | 8 +-- .../pkg/models/shared/deepobjectcamelcase.go | 8 +-- .../pkg/models/shared/deepobjectwithtype.go | 8 +-- .../pkg/models/shared/examplevehicle.go | 8 +-- .../models/shared/flattenedtypedobject1.go | 4 +- .../models/shared/nullableoneofrefinobject.go | 12 ++-- .../shared/nullableoneoftypeinobject.go | 8 +-- .../shared/oneofcircularreferenceobject.go | 8 +-- .../shared/oneofgenerationstresstest.go | 16 +++--- .../pkg/models/shared/primitivetypeunion.go | 24 ++++---- .../models/shared/typedobjectnullableoneof.go | 8 +-- .../pkg/models/shared/typedobjectoneof.go | 12 ++-- .../models/shared/weaklytypedoneofobject.go | 8 +-- .../shared/weaklytypedoneofreadonlyobject.go | 8 +-- .../weaklytypedoneofreadonlyobjectinput.go | 8 +-- .../weaklytypedoneofreadwriteobjectinput.go | 8 +-- .../weaklytypedoneofreadwriteobjectoutput.go | 8 +-- .../shared/weaklytypedoneofwriteonlyobject.go | 8 +-- .../weaklytypedoneofwriteonlyobjectoutput.go | 8 +-- go-client-sdk/sdk.go | 6 +- go-client-sdk/tests/parameters_test.go | 56 +++++++++---------- go-client-sdk/testsprimary/telemetry_test.go | 4 +- 30 files changed, 182 insertions(+), 172 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 31120bdbe..a78588f56 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 \ No newline at end of file +- [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 \ No newline at end of file diff --git a/go-client-sdk/docs/sdks/parameters/README.md b/go-client-sdk/docs/sdks/parameters/README.md index e6cb0be56..7c041a00c 100755 --- a/go-client-sdk/docs/sdks/parameters/README.md +++ b/go-client-sdk/docs/sdks/parameters/README.md @@ -380,8 +380,8 @@ func main() { } mapParamExploded := map[string]int64{ - "test2": 2, "test": 1, + "test2": 2, } ctx := context.Background() @@ -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"), @@ -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"), @@ -1441,8 +1441,8 @@ func main() { } mapParam := map[string]string{ - "key1": "val1", "key2": "val2", + "key1": "val1", } objParam := &shared.SimpleObject{ diff --git a/go-client-sdk/docs/sdks/requestbodies/README.md b/go-client-sdk/docs/sdks/requestbodies/README.md index b0f185830..888fc1624 100755 --- a/go-client-sdk/docs/sdks/requestbodies/README.md +++ b/go-client-sdk/docs/sdks/requestbodies/README.md @@ -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"), @@ -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"), diff --git a/go-client-sdk/gen.yaml b/go-client-sdk/gen.yaml index 10611c0fd..84e7ee91b 100755 --- a/go-client-sdk/gen.yaml +++ b/go-client-sdk/gen.yaml @@ -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 @@ -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 diff --git a/go-client-sdk/pkg/models/operations/deepobjectqueryparamsmap.go b/go-client-sdk/pkg/models/operations/deepobjectqueryparamsmap.go index ab010f9c0..74c1aee3a 100755 --- a/go-client-sdk/pkg/models/operations/deepobjectqueryparamsmap.go +++ b/go-client-sdk/pkg/models/operations/deepobjectqueryparamsmap.go @@ -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 } diff --git a/go-client-sdk/pkg/models/operations/mixedtypeoneofpost.go b/go-client-sdk/pkg/models/operations/mixedtypeoneofpost.go index 0c5615c0f..cf756a6a2 100755 --- a/go-client-sdk/pkg/models/operations/mixedtypeoneofpost.go +++ b/go-client-sdk/pkg/models/operations/mixedtypeoneofpost.go @@ -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 } @@ -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 } diff --git a/go-client-sdk/pkg/models/operations/nullableoneofschemapost.go b/go-client-sdk/pkg/models/operations/nullableoneofschemapost.go index aa472f831..47686db33 100755 --- a/go-client-sdk/pkg/models/operations/nullableoneofschemapost.go +++ b/go-client-sdk/pkg/models/operations/nullableoneofschemapost.go @@ -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 } @@ -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 } diff --git a/go-client-sdk/pkg/models/operations/primitivetypeoneofpost.go b/go-client-sdk/pkg/models/operations/primitivetypeoneofpost.go index 0132aa55d..91a40b255 100755 --- a/go-client-sdk/pkg/models/operations/primitivetypeoneofpost.go +++ b/go-client-sdk/pkg/models/operations/primitivetypeoneofpost.go @@ -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 } @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/deepobject.go b/go-client-sdk/pkg/models/shared/deepobject.go index c910e4e63..854808cff 100755 --- a/go-client-sdk/pkg/models/shared/deepobject.go +++ b/go-client-sdk/pkg/models/shared/deepobject.go @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/deepobjectcamelcase.go b/go-client-sdk/pkg/models/shared/deepobjectcamelcase.go index b1335e9a1..3a66b2cc4 100755 --- a/go-client-sdk/pkg/models/shared/deepobjectcamelcase.go +++ b/go-client-sdk/pkg/models/shared/deepobjectcamelcase.go @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/deepobjectwithtype.go b/go-client-sdk/pkg/models/shared/deepobjectwithtype.go index b307479b9..297184c6b 100755 --- a/go-client-sdk/pkg/models/shared/deepobjectwithtype.go +++ b/go-client-sdk/pkg/models/shared/deepobjectwithtype.go @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/examplevehicle.go b/go-client-sdk/pkg/models/shared/examplevehicle.go index 91284944c..613a9e0f7 100755 --- a/go-client-sdk/pkg/models/shared/examplevehicle.go +++ b/go-client-sdk/pkg/models/shared/examplevehicle.go @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/flattenedtypedobject1.go b/go-client-sdk/pkg/models/shared/flattenedtypedobject1.go index b0d0731a7..3e88aa05d 100755 --- a/go-client-sdk/pkg/models/shared/flattenedtypedobject1.go +++ b/go-client-sdk/pkg/models/shared/flattenedtypedobject1.go @@ -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 } diff --git a/go-client-sdk/pkg/models/shared/nullableoneofrefinobject.go b/go-client-sdk/pkg/models/shared/nullableoneofrefinobject.go index 6a9d56fc2..098acfacc 100755 --- a/go-client-sdk/pkg/models/shared/nullableoneofrefinobject.go +++ b/go-client-sdk/pkg/models/shared/nullableoneofrefinobject.go @@ -41,16 +41,16 @@ func CreateNullableOneOfRefInObjectNullableOneOfTwoTypedObject2(typedObject2 Typ func (u *NullableOneOfRefInObjectNullableOneOfTwo) 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 = NullableOneOfRefInObjectNullableOneOfTwoTypeTypedObject1 return nil } - typedObject2 := new(TypedObject2) + typedObject2 := TypedObject2{} if err := utils.UnmarshalJSON(data, &typedObject2, "", true, true); err == nil { - u.TypedObject2 = typedObject2 + u.TypedObject2 = &typedObject2 u.Type = NullableOneOfRefInObjectNullableOneOfTwoTypeTypedObject2 return nil } @@ -93,9 +93,9 @@ func CreateNullableOneOfRefInObjectOneOfOneTypedObject1(typedObject1 TypedObject func (u *NullableOneOfRefInObjectOneOfOne) 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 = NullableOneOfRefInObjectOneOfOneTypeTypedObject1 return nil } diff --git a/go-client-sdk/pkg/models/shared/nullableoneoftypeinobject.go b/go-client-sdk/pkg/models/shared/nullableoneoftypeinobject.go index e2ef127db..b3a81e6ef 100755 --- a/go-client-sdk/pkg/models/shared/nullableoneoftypeinobject.go +++ b/go-client-sdk/pkg/models/shared/nullableoneoftypeinobject.go @@ -41,16 +41,16 @@ func CreateNullableOneOfTypeInObjectNullableOneOfTwoInteger(integer int64) Nulla func (u *NullableOneOfTypeInObjectNullableOneOfTwo) UnmarshalJSON(data []byte) error { - boolean := new(bool) + boolean := false if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { - u.Boolean = boolean + u.Boolean = &boolean u.Type = NullableOneOfTypeInObjectNullableOneOfTwoTypeBoolean 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 = NullableOneOfTypeInObjectNullableOneOfTwoTypeInteger return nil } diff --git a/go-client-sdk/pkg/models/shared/oneofcircularreferenceobject.go b/go-client-sdk/pkg/models/shared/oneofcircularreferenceobject.go index d06c1bc32..9fffd6c6a 100755 --- a/go-client-sdk/pkg/models/shared/oneofcircularreferenceobject.go +++ b/go-client-sdk/pkg/models/shared/oneofcircularreferenceobject.go @@ -41,16 +41,16 @@ func CreateOneOfCircularReferenceObjectChildSimpleObject(simpleObject SimpleObje func (u *OneOfCircularReferenceObjectChild) UnmarshalJSON(data []byte) error { - oneOfCircularReferenceObject := new(OneOfCircularReferenceObject) + oneOfCircularReferenceObject := OneOfCircularReferenceObject{} if err := utils.UnmarshalJSON(data, &oneOfCircularReferenceObject, "", true, true); err == nil { - u.OneOfCircularReferenceObject = oneOfCircularReferenceObject + u.OneOfCircularReferenceObject = &oneOfCircularReferenceObject u.Type = OneOfCircularReferenceObjectChildTypeOneOfCircularReferenceObject return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = OneOfCircularReferenceObjectChildTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/oneofgenerationstresstest.go b/go-client-sdk/pkg/models/shared/oneofgenerationstresstest.go index b8f5b6329..7d576bdd9 100755 --- a/go-client-sdk/pkg/models/shared/oneofgenerationstresstest.go +++ b/go-client-sdk/pkg/models/shared/oneofgenerationstresstest.go @@ -43,16 +43,16 @@ func CreateOneOfGenerationStressTestOneOfFromArrayOfTypesInteger(integer int64) func (u *OneOfGenerationStressTestOneOfFromArrayOfTypes) 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 = OneOfGenerationStressTestOneOfFromArrayOfTypesTypeStr 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 = OneOfGenerationStressTestOneOfFromArrayOfTypesTypeInteger return nil } @@ -130,16 +130,16 @@ func CreateOneOfGenerationStressTestOneOfSameTypeOneOfGenerationStressTestOneOfS func (u *OneOfGenerationStressTestOneOfSameType) 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 = OneOfGenerationStressTestOneOfSameTypeTypeStr return nil } - oneOfGenerationStressTestOneOfSameType2 := new(OneOfGenerationStressTestOneOfSameType2) + oneOfGenerationStressTestOneOfSameType2 := OneOfGenerationStressTestOneOfSameType2("") if err := utils.UnmarshalJSON(data, &oneOfGenerationStressTestOneOfSameType2, "", true, true); err == nil { - u.OneOfGenerationStressTestOneOfSameType2 = oneOfGenerationStressTestOneOfSameType2 + u.OneOfGenerationStressTestOneOfSameType2 = &oneOfGenerationStressTestOneOfSameType2 u.Type = OneOfGenerationStressTestOneOfSameTypeTypeOneOfGenerationStressTestOneOfSameType2 return nil } diff --git a/go-client-sdk/pkg/models/shared/primitivetypeunion.go b/go-client-sdk/pkg/models/shared/primitivetypeunion.go index 053919b45..ba0b7e3ae 100755 --- a/go-client-sdk/pkg/models/shared/primitivetypeunion.go +++ b/go-client-sdk/pkg/models/shared/primitivetypeunion.go @@ -85,44 +85,44 @@ func CreatePrimitiveTypeUnionBoolean(boolean bool) PrimitiveTypeUnion { func (u *PrimitiveTypeUnion) 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 = PrimitiveTypeUnionTypeStr 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 = PrimitiveTypeUnionTypeInteger return nil } - int32Var := new(int) + int32Var := 0 if err := utils.UnmarshalJSON(data, &int32Var, "", true, true); err == nil { - u.Int32 = int32Var + u.Int32 = &int32Var u.Type = PrimitiveTypeUnionTypeInt32 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 = PrimitiveTypeUnionTypeNumber return nil } - float32Var := new(float32) + float32Var := float32(0) if err := utils.UnmarshalJSON(data, &float32Var, "", true, true); err == nil { - u.Float32 = float32Var + u.Float32 = &float32Var u.Type = PrimitiveTypeUnionTypeFloat32 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 = PrimitiveTypeUnionTypeBoolean return nil } diff --git a/go-client-sdk/pkg/models/shared/typedobjectnullableoneof.go b/go-client-sdk/pkg/models/shared/typedobjectnullableoneof.go index 638b02ef3..3bb50e0f8 100755 --- a/go-client-sdk/pkg/models/shared/typedobjectnullableoneof.go +++ b/go-client-sdk/pkg/models/shared/typedobjectnullableoneof.go @@ -41,16 +41,16 @@ func CreateTypedObjectNullableOneOfTypedObject2(typedObject2 TypedObject2) Typed func (u *TypedObjectNullableOneOf) 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 = TypedObjectNullableOneOfTypeTypedObject1 return nil } - typedObject2 := new(TypedObject2) + typedObject2 := TypedObject2{} if err := utils.UnmarshalJSON(data, &typedObject2, "", true, true); err == nil { - u.TypedObject2 = typedObject2 + u.TypedObject2 = &typedObject2 u.Type = TypedObjectNullableOneOfTypeTypedObject2 return nil } diff --git a/go-client-sdk/pkg/models/shared/typedobjectoneof.go b/go-client-sdk/pkg/models/shared/typedobjectoneof.go index 5cd78d133..b2736702d 100755 --- a/go-client-sdk/pkg/models/shared/typedobjectoneof.go +++ b/go-client-sdk/pkg/models/shared/typedobjectoneof.go @@ -52,23 +52,23 @@ func CreateTypedObjectOneOfTypedObject3(typedObject3 TypedObject3) TypedObjectOn func (u *TypedObjectOneOf) 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 = TypedObjectOneOfTypeTypedObject1 return nil } - typedObject2 := new(TypedObject2) + typedObject2 := TypedObject2{} if err := utils.UnmarshalJSON(data, &typedObject2, "", true, true); err == nil { - u.TypedObject2 = typedObject2 + u.TypedObject2 = &typedObject2 u.Type = TypedObjectOneOfTypeTypedObject2 return nil } - typedObject3 := new(TypedObject3) + typedObject3 := TypedObject3{} if err := utils.UnmarshalJSON(data, &typedObject3, "", true, true); err == nil { - u.TypedObject3 = typedObject3 + u.TypedObject3 = &typedObject3 u.Type = TypedObjectOneOfTypeTypedObject3 return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofobject.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofobject.go index a2c7851ac..0f683b2c0 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofobject.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofobject.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfObjectDeepObject(deepObject DeepObject) WeaklyTypedOn func (u *WeaklyTypedOneOfObject) UnmarshalJSON(data []byte) error { - deepObject := new(DeepObject) + deepObject := DeepObject{} if err := utils.UnmarshalJSON(data, &deepObject, "", true, true); err == nil { - u.DeepObject = deepObject + u.DeepObject = &deepObject u.Type = WeaklyTypedOneOfObjectTypeDeepObject return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfObjectTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobject.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobject.go index ee960d346..ae48afeca 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobject.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobject.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfReadOnlyObjectReadOnlyObject(readOnlyObject ReadOnlyO func (u *WeaklyTypedOneOfReadOnlyObject) UnmarshalJSON(data []byte) error { - readOnlyObject := new(ReadOnlyObject) + readOnlyObject := ReadOnlyObject{} if err := utils.UnmarshalJSON(data, &readOnlyObject, "", true, true); err == nil { - u.ReadOnlyObject = readOnlyObject + u.ReadOnlyObject = &readOnlyObject u.Type = WeaklyTypedOneOfReadOnlyObjectTypeReadOnlyObject return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfReadOnlyObjectTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobjectinput.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobjectinput.go index cc9c52f16..88dfea003 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobjectinput.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadonlyobjectinput.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfReadOnlyObjectInputReadOnlyObjectInput(readOnlyObject func (u *WeaklyTypedOneOfReadOnlyObjectInput) UnmarshalJSON(data []byte) error { - readOnlyObjectInput := new(ReadOnlyObjectInput) + readOnlyObjectInput := ReadOnlyObjectInput{} if err := utils.UnmarshalJSON(data, &readOnlyObjectInput, "", true, true); err == nil { - u.ReadOnlyObjectInput = readOnlyObjectInput + u.ReadOnlyObjectInput = &readOnlyObjectInput u.Type = WeaklyTypedOneOfReadOnlyObjectInputTypeReadOnlyObjectInput return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfReadOnlyObjectInputTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectinput.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectinput.go index b5eb0791e..691f275f7 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectinput.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectinput.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfReadWriteObjectInputReadWriteObjectInput(readWriteObj func (u *WeaklyTypedOneOfReadWriteObjectInput) UnmarshalJSON(data []byte) error { - readWriteObjectInput := new(ReadWriteObjectInput) + readWriteObjectInput := ReadWriteObjectInput{} if err := utils.UnmarshalJSON(data, &readWriteObjectInput, "", true, true); err == nil { - u.ReadWriteObjectInput = readWriteObjectInput + u.ReadWriteObjectInput = &readWriteObjectInput u.Type = WeaklyTypedOneOfReadWriteObjectInputTypeReadWriteObjectInput return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfReadWriteObjectInputTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectoutput.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectoutput.go index 9be3a64e3..f0fca898b 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectoutput.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofreadwriteobjectoutput.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfReadWriteObjectOutputReadWriteObjectOutput(readWriteO func (u *WeaklyTypedOneOfReadWriteObjectOutput) UnmarshalJSON(data []byte) error { - readWriteObjectOutput := new(ReadWriteObjectOutput) + readWriteObjectOutput := ReadWriteObjectOutput{} if err := utils.UnmarshalJSON(data, &readWriteObjectOutput, "", true, true); err == nil { - u.ReadWriteObjectOutput = readWriteObjectOutput + u.ReadWriteObjectOutput = &readWriteObjectOutput u.Type = WeaklyTypedOneOfReadWriteObjectOutputTypeReadWriteObjectOutput return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfReadWriteObjectOutputTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobject.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobject.go index 2386125e6..587fda239 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobject.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobject.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfWriteOnlyObjectWriteOnlyObject(writeOnlyObject WriteO func (u *WeaklyTypedOneOfWriteOnlyObject) UnmarshalJSON(data []byte) error { - writeOnlyObject := new(WriteOnlyObject) + writeOnlyObject := WriteOnlyObject{} if err := utils.UnmarshalJSON(data, &writeOnlyObject, "", true, true); err == nil { - u.WriteOnlyObject = writeOnlyObject + u.WriteOnlyObject = &writeOnlyObject u.Type = WeaklyTypedOneOfWriteOnlyObjectTypeWriteOnlyObject return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfWriteOnlyObjectTypeSimpleObject return nil } diff --git a/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobjectoutput.go b/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobjectoutput.go index de1c46c2c..fe42b9ae5 100755 --- a/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobjectoutput.go +++ b/go-client-sdk/pkg/models/shared/weaklytypedoneofwriteonlyobjectoutput.go @@ -41,16 +41,16 @@ func CreateWeaklyTypedOneOfWriteOnlyObjectOutputWriteOnlyObjectOutput(writeOnlyO func (u *WeaklyTypedOneOfWriteOnlyObjectOutput) UnmarshalJSON(data []byte) error { - writeOnlyObjectOutput := new(WriteOnlyObjectOutput) + writeOnlyObjectOutput := WriteOnlyObjectOutput{} if err := utils.UnmarshalJSON(data, &writeOnlyObjectOutput, "", true, true); err == nil { - u.WriteOnlyObjectOutput = writeOnlyObjectOutput + u.WriteOnlyObjectOutput = &writeOnlyObjectOutput u.Type = WeaklyTypedOneOfWriteOnlyObjectOutputTypeWriteOnlyObjectOutput return nil } - simpleObject := new(SimpleObject) + simpleObject := SimpleObject{} if err := utils.UnmarshalJSON(data, &simpleObject, "", true, true); err == nil { - u.SimpleObject = simpleObject + u.SimpleObject = &simpleObject u.Type = WeaklyTypedOneOfWriteOnlyObjectOutputTypeSimpleObject return nil } diff --git a/go-client-sdk/sdk.go b/go-client-sdk/sdk.go index caaba4f40..506da1888 100755 --- a/go-client-sdk/sdk.go +++ b/go-client-sdk/sdk.go @@ -301,9 +301,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.1.0", - SDKVersion: "1.39.1", - GenVersion: "2.172.4", - UserAgent: "speakeasy-sdk/go 1.39.1 2.172.4 0.1.0 openapi", + SDKVersion: "1.39.2", + GenVersion: "2.173.0", + UserAgent: "speakeasy-sdk/go 1.39.2 2.173.0 0.1.0 openapi", Globals: map[string]map[string]map[string]interface{}{ "parameters": {}, }, diff --git a/go-client-sdk/tests/parameters_test.go b/go-client-sdk/tests/parameters_test.go index 02d559da0..78c5e7d41 100755 --- a/go-client-sdk/tests/parameters_test.go +++ b/go-client-sdk/tests/parameters_test.go @@ -413,8 +413,8 @@ func TestParameters_HeaderParamsMap(t *testing.T) { ) xHeaderMap := map[string]string{ - "key1": "value1", "key2": "value2", + "key1": "value1", } xHeaderMapExplode := map[string]string{ @@ -827,43 +827,43 @@ func TestParameters_MixedQueryParams(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]string{ - "deepObjectParam[int32]": "1", - "str": "test", + "deepObjectParam[num]": "1.1", + "deepObjectParam[decimalStr]": "3.14159265358979344719667586", + "deepObjectParam[strOpt]": "testOptional", + "enum": "one", + "int": "1", "bool": "true", - "deepObjectParam[float32]": "1.1", + "deepObjectParam[bigint]": "8821239038968084", "deepObjectParam[date]": "2020-01-01", - "deepObjectParam[enum]": "one", - "deepObjectParam[int]": "1", - "int32": "1", + "num": "1.1", "strOpt": "testOptional", + "any": "any", + "deepObjectParam[bigintStr]": "9223372036854775808", + "decimal": "3.141592653589793", + "boolOpt": "true", + "deepObjectParam[any]": "any", + "float32": "1.1", + "deepObjectParam[bool]": "true", + "deepObjectParam[int]": "1", + "deepObjectParam[int32Enum]": "55", + "bigint": "8821239038968084", "bigintStr": "9223372036854775808", - "dateTime": "2020-01-01T00:00:00.000000001Z", - "int32Enum": "55", - "num": "1.1", "deepObjectParam[boolOpt]": "true", - "deepObjectParam[strOpt]": "testOptional", - "deepObjectParam[intEnum]": "2", - "deepObjectParam[decimal]": "3.141592653589793", - "deepObjectParam[decimalStr]": "3.14159265358979344719667586", + "deepObjectParam[int32]": "1", + "int32": "1", "intEnum": "2", - "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", - "boolOpt": "true", "date": "2020-01-01", - "deepObjectParam[bool]": "true", + "dateTime": "2020-01-01T00:00:00.000000001Z", "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z", + "int32Enum": "55", + "deepObjectParam[enum]": "one", + "deepObjectParam[decimal]": "3.141592653589793", "deepObjectParam[str]": "test", - "enum": "one", - "int": "1", - "deepObjectParam[any]": "any", - "deepObjectParam[bigint]": "8821239038968084", - "bigint": "8821239038968084", - "deepObjectParam[num]": "1.1", - "deepObjectParam[int32Enum]": "55", - "decimal": "3.141592653589793", - "any": "any", - "deepObjectParam[bigintStr]": "9223372036854775808", - "float32": "1.1", "decimalStr": "3.14159265358979344719667586", + "str": "test", + "deepObjectParam[float32]": "1.1", + "deepObjectParam[intEnum]": "2", + "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", }, res.Res.Args) assert.Equal(t, "http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bigint\"%3A8821239038968084%2C\"bigintStr\"%3A\"9223372036854775808\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"decimal\"%3A3.141592653589793%2C\"decimalStr\"%3A\"3.14159265358979344719667586\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional", res.Res.URL) } diff --git a/go-client-sdk/testsprimary/telemetry_test.go b/go-client-sdk/testsprimary/telemetry_test.go index 29e07e1bb..58204b309 100755 --- a/go-client-sdk/testsprimary/telemetry_test.go +++ b/go-client-sdk/testsprimary/telemetry_test.go @@ -22,7 +22,7 @@ func TestTelemetryUserAgentGet(t *testing.T) { require.NoError(t, err) require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) - assert.Equal(t, "speakeasy-sdk/go 1.39.1 2.172.4 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.2 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) } func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { @@ -37,5 +37,5 @@ func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) assert.Equal(t, userAgent, res.Res.Headers["User-Agent"]) - assert.Equal(t, "speakeasy-sdk/go 1.39.1 2.172.4 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.2 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) }