Skip to content

Commit db29260

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.637.0
1 parent 05b5eaf commit db29260

File tree

17 files changed

+53
-107
lines changed

17 files changed

+53
-107
lines changed

.devcontainer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
<div align="center">
3+
<a href="https://codespaces.new/QuePlatform/GoSDK.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
27
> **Remember to shutdown a GitHub Codespace when it is not in use!**
38
49
# Dev Containers Quick Start

.speakeasy/gen.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ id: ddf9e346-bb43-4ccc-aaae-95e233eb6f3f
33
management:
44
docChecksum: 5be1033d3fcd17c8b64f613200c1ef01
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.621.1
7-
generationVersion: 2.708.2
8-
releaseVersion: 0.0.2
9-
configChecksum: 0f69a66bb8df56df0a1727293f910ef9
6+
speakeasyVersion: 1.637.0
7+
generationVersion: 2.727.4
8+
releaseVersion: 0.1.0
9+
configChecksum: 43b141a7cc7c620e55d207dfdac38090
10+
repoURL: https://github.com/QuePlatform/GoSDK.git
11+
installationURL: https://github.com/QuePlatform/GoSDK
1012
features:
1113
go:
1214
additionalDependencies: 0.1.0
1315
constsAndDefaults: 0.1.12
14-
core: 3.11.0
16+
core: 3.12.0
1517
defaultEnabledRetries: 0.2.0
1618
devContainers: 2.90.0
1719
envVarSecurityUsage: 0.3.2
@@ -20,11 +22,11 @@ features:
2022
globalSecurityFlattening: 0.1.0
2123
globalServerURLs: 2.82.3
2224
intellisenseMarkdownSupport: 0.1.0
23-
nullables: 0.2.0
25+
nullables: 0.2.1
2426
responseFormat: 0.1.2
2527
retries: 2.84.2
2628
sdkHooks: 0.2.0
27-
unions: 2.85.14
29+
unions: 2.86.0
2830
generatedFiles:
2931
- .devcontainer/README.md
3032
- .devcontainer/devcontainer.json
@@ -122,7 +124,6 @@ generatedFiles:
122124
- types/bigint.go
123125
- types/date.go
124126
- types/datetime.go
125-
- types/decimal.go
126127
- types/pointers.go
127128
- utility.go
128129
examples:

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ generation:
2222
hoistGlobalSecurity: true
2323
inferSSEOverload: true
2424
sdkHooksConfigAccess: true
25+
schemas:
26+
allOfMergeStrategy: shallowMerge
2527
tests:
2628
generateTests: false
2729
generateNewTests: true
2830
skipResponseBodyAssertions: false
2931
go:
30-
version: 0.0.2
32+
version: 0.1.0
3133
additionalDependencies: {}
3234
baseErrorName: QueError
3335
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.621.1
1+
speakeasyVersion: 1.637.0
22
sources:
33
Que API:
44
sourceNamespace: que-api
5-
sourceRevisionDigest: sha256:80df4c9999cdc7c286e30ee79425ec574be16294d3b8b890ffba773dce254dc8
6-
sourceBlobDigest: sha256:022738a40948c2fe68b0f5fa760cf5197b333d62458755a7aefcdbb8b02030e3
5+
sourceRevisionDigest: sha256:1d1dac444fb41dee5adefa3de97825285c766cfe0fc1c668895da3d1a71aeac2
6+
sourceBlobDigest: sha256:140578c495d7673e904df7fc110e6485e2382635f23ed86315ddfffdcac9dc7c
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1759801402
910
- 1.0.0
1011
targets:
1112
que:
1213
source: Que API
1314
sourceNamespace: que-api
14-
sourceRevisionDigest: sha256:80df4c9999cdc7c286e30ee79425ec574be16294d3b8b890ffba773dce254dc8
15-
sourceBlobDigest: sha256:022738a40948c2fe68b0f5fa760cf5197b333d62458755a7aefcdbb8b02030e3
15+
sourceRevisionDigest: sha256:1d1dac444fb41dee5adefa3de97825285c766cfe0fc1c668895da3d1a71aeac2
16+
sourceBlobDigest: sha256:140578c495d7673e904df7fc110e6485e2382635f23ed86315ddfffdcac9dc7c
1617
codeSamplesNamespace: que-api-go-code-samples
17-
codeSamplesRevisionDigest: sha256:f9ee0897034fac1730add87060d92762041043f0d4943dab3ce5d2d2cefd1dff
18+
codeSamplesRevisionDigest: sha256:2b57aad98d03ba4da44a8a7bd4a0f76784cce9dc51e7595793f0f418a246d318
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2025-10-20 01:54:42
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.637.0 (2.727.4) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [go v0.1.0] .
10+
### Releases
11+
- [Go v0.1.0] https://github.com/QuePlatform/GoSDK/releases/tag/v0.1.0 - .

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ module github.com/QuePlatform/GoSDK
22

33
go 1.22
44

5-
require (
6-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
7-
github.com/stretchr/testify v1.11.1
8-
)
5+
require github.com/stretchr/testify v1.11.1
96

107
require (
118
github.com/davecgh/go-spew v1.1.1 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw=
4-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=
53
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
64
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
75
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=

internal/utils/form.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import (
1010
"strings"
1111
"time"
1212

13-
"github.com/ericlagergren/decimal"
14-
1513
"github.com/QuePlatform/GoSDK/optionalnullable"
1614
"github.com/QuePlatform/GoSDK/types"
1715
)
@@ -42,8 +40,6 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
4240
formValues.Add(paramName, valToString(objValue.Interface()))
4341
case big.Int:
4442
formValues.Add(paramName, valToString(objValue.Interface()))
45-
case decimal.Big:
46-
formValues.Add(paramName, valToString(objValue.Interface()))
4743
default:
4844
var items []string
4945

@@ -65,7 +61,13 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
6561
}
6662

6763
if explode {
68-
formValues.Add(fieldName, valToString(valType.Interface()))
64+
if valType.Kind() == reflect.Slice || valType.Kind() == reflect.Array {
65+
for i := 0; i < valType.Len(); i++ {
66+
formValues.Add(fieldName, valToString(valType.Index(i).Interface()))
67+
}
68+
} else {
69+
formValues.Add(fieldName, valToString(valType.Interface()))
70+
}
6971
} else {
7072
items = append(items, fmt.Sprintf("%s%s%s", fieldName, delimiter, valToString(valType.Interface())))
7173
}

internal/utils/json.go

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import (
1515
"unsafe"
1616

1717
"github.com/QuePlatform/GoSDK/types"
18-
19-
"github.com/ericlagergren/decimal"
2018
)
2119

2220
func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) {
@@ -345,17 +343,6 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error)
345343
b := val.Interface().(big.Int)
346344
return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil
347345
}
348-
case reflect.TypeOf(decimal.Big{}):
349-
format := tag.Get("decimal")
350-
if format == "number" {
351-
b := val.Interface().(decimal.Big)
352-
f, ok := (&b).Float64()
353-
if ok {
354-
return []byte(b.String()), nil
355-
}
356-
357-
return []byte(fmt.Sprintf(`%f`, f)), nil
358-
}
359346
}
360347
}
361348

@@ -386,11 +373,6 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc
386373
if format == "string" {
387374
return []byte(fmt.Sprintf(`"%s"`, tagValue))
388375
}
389-
case reflect.TypeOf(decimal.Big{}):
390-
decimalTag := tag.Get("decimal")
391-
if decimalTag != "number" {
392-
return []byte(fmt.Sprintf(`"%s"`, tagValue))
393-
}
394376
case reflect.TypeOf(types.Date{}):
395377
return []byte(fmt.Sprintf(`"%s"`, tagValue))
396378
default:
@@ -571,27 +553,6 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa
571553

572554
v.Set(reflect.ValueOf(b))
573555
return nil
574-
case reflect.TypeOf(decimal.Big{}):
575-
var d *decimal.Big
576-
format := tag.Get("decimal")
577-
if format == "number" {
578-
var ok bool
579-
d, ok = new(decimal.Big).SetString(string(value))
580-
if !ok {
581-
return fmt.Errorf("failed to parse number as decimal.Big")
582-
}
583-
} else {
584-
if err := json.Unmarshal(value, &d); err != nil {
585-
return err
586-
}
587-
}
588-
589-
if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr {
590-
v = v.Elem()
591-
}
592-
593-
v.Set(reflect.ValueOf(d))
594-
return nil
595556
case reflect.TypeOf(types.Date{}):
596557
var s string
597558

@@ -656,8 +617,6 @@ func isComplexValueType(typ reflect.Type) bool {
656617
fallthrough
657618
case reflect.TypeOf(big.Int{}):
658619
fallthrough
659-
case reflect.TypeOf(decimal.Big{}):
660-
fallthrough
661620
case reflect.TypeOf(types.Date{}):
662621
return true
663622
}

internal/utils/pathparams.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/ericlagergren/decimal"
15-
1614
"github.com/QuePlatform/GoSDK/optionalnullable"
1715
"github.com/QuePlatform/GoSDK/types"
1816
)
@@ -146,8 +144,6 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle
146144
pathParams[parentName] = valToString(objValue.Interface())
147145
case big.Int:
148146
pathParams[parentName] = valToString(objValue.Interface())
149-
case decimal.Big:
150-
pathParams[parentName] = valToString(objValue.Interface())
151147
default:
152148
var ppVals []string
153149
for i := 0; i < objType.NumField(); i++ {

0 commit comments

Comments
 (0)