Skip to content

Commit 9c879da

Browse files
Merge pull request #114 from OneBusAway/release-please--branches--main--changes--next
release: 1.8.0
2 parents 91e3a65 + 4d50c6c commit 9c879da

9 files changed

Lines changed: 41 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2525
if: |-
2626
github.repository == 'stainless-sdks/open-transit-go' &&
27-
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) &&
28-
(github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
27+
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2928
steps:
3029
- uses: actions/checkout@v6
3130

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.7.2"
2+
".": "1.8.0"
33
}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 1.8.0 (2026-03-28)
4+
5+
Full Changelog: [v1.7.2...v1.8.0](https://github.com/OneBusAway/go-sdk/compare/v1.7.2...v1.8.0)
6+
7+
### Features
8+
9+
* **internal:** support comma format in multipart form encoding ([6855a1c](https://github.com/OneBusAway/go-sdk/commit/6855a1cdbed3c3750879295796e9913d57c0d343))
10+
11+
12+
### Bug Fixes
13+
14+
* prevent duplicate ? in query params ([5ec43c4](https://github.com/OneBusAway/go-sdk/commit/5ec43c41d408f340690cbbb53aadc59c70674e4d))
15+
16+
17+
### Chores
18+
19+
* **ci:** support opting out of skipping builds on metadata-only commits ([048ee97](https://github.com/OneBusAway/go-sdk/commit/048ee973c5a57d10e23ce61863f78bffc3d42c52))
20+
* remove unnecessary error check for url parsing ([dcc451b](https://github.com/OneBusAway/go-sdk/commit/dcc451b2216e52cf3302fdffb9e1becfa3093319))
21+
322
## 1.7.2 (2026-03-25)
423

524
Full Changelog: [v1.7.1...v1.7.2](https://github.com/OneBusAway/go-sdk/compare/v1.7.1...v1.7.2)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/OneBusAway/go-sdk@v1.7.2'
27+
go get -u 'github.com/OneBusAway/go-sdk@v1.8.0'
2828
```
2929

3030
<!-- x-release-please-end -->

internal/apiquery/encoder.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,14 @@ func (e *encoder) newArrayTypeEncoder(t reflect.Type) encoderFunc {
232232
return pairs
233233
}
234234
case ArrayQueryFormatIndices:
235-
panic("The array indices format is not supported yet")
235+
innerEncoder := e.typeEncoder(t.Elem())
236+
return func(key string, value reflect.Value) []Pair {
237+
pairs := make([]Pair, 0, value.Len())
238+
for i := 0; i < value.Len(); i++ {
239+
pairs = append(pairs, innerEncoder(fmt.Sprintf("%s[%d]", key, i), value.Index(i))...)
240+
}
241+
return pairs
242+
}
236243
case ArrayQueryFormatBrackets:
237244
innerEncoder := e.typeEncoder(t.Elem())
238245
return func(key string, value reflect.Value) []Pair {

internal/requestconfig/requestconfig.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ func NewRequestConfig(ctx context.Context, method string, u string, body interfa
118118
hasSerializationFunc = true
119119
params := body.URLQuery().Encode()
120120
if params != "" {
121-
u = u + "?" + params
121+
parsed, _ := url.Parse(u)
122+
if parsed.RawQuery != "" {
123+
parsed.RawQuery = parsed.RawQuery + "&" + params
124+
u = parsed.String()
125+
} else {
126+
u = u + "?" + params
127+
}
122128
}
123129
}
124130
if body, ok := body.([]byte); ok {

internal/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package internal
44

5-
const PackageVersion = "1.7.2" // x-release-please-version
5+
const PackageVersion = "1.8.0" // x-release-please-version

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$1" == "--daemon" ]; then
2424
# Pre-install the package so the download doesn't eat into the startup timeout
2525
npm exec --package=@stdy/cli@0.19.7 -- steady --version
2626

27-
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=repeat --validator-query-array-format=repeat --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL" &> .stdy.log &
27+
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=repeat --validator-form-array-format=repeat --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL" &> .stdy.log &
2828

2929
# Wait for server to come online via health endpoint (max 30s)
3030
echo -n "Waiting for server"
@@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then
4848

4949
echo
5050
else
51-
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=repeat --validator-query-array-format=repeat --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL"
51+
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=repeat --validator-form-array-format=repeat --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL"
5252
fi

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! steady_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the steady command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=repeat --validator-query-array-format=repeat --validator-form-object-format=brackets --validator-query-object-format=brackets${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=repeat --validator-form-array-format=repeat --validator-query-object-format=brackets --validator-form-object-format=brackets${NC}"
4747
echo
4848

4949
exit 1

0 commit comments

Comments
 (0)