Skip to content

Commit 43d34a0

Browse files
Merge pull request #113 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.57
2 parents 772b4b8 + 3ee0ce7 commit 43d34a0

110 files changed

Lines changed: 13247 additions & 4309 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'
@@ -17,13 +19,13 @@ jobs:
1719
timeout-minutes: 15
1820
name: lint
1921
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2123

2224
steps:
23-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2426

2527
- name: Set up Java
26-
uses: actions/setup-java@v5
28+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
2729
with:
2830
distribution: temurin
2931
java-version: |
@@ -32,7 +34,7 @@ jobs:
3234
cache: gradle
3335

3436
- name: Set up Gradle
35-
uses: gradle/actions/setup-gradle@v4
37+
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
3638

3739
- name: Run lints
3840
run: ./scripts/lint
@@ -44,13 +46,13 @@ jobs:
4446
contents: read
4547
id-token: write
4648
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
47-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
49+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4850

4951
steps:
50-
- uses: actions/checkout@v6
52+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5153

5254
- name: Set up Java
53-
uses: actions/setup-java@v5
55+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
5456
with:
5557
distribution: temurin
5658
java-version: |
@@ -59,7 +61,7 @@ jobs:
5961
cache: gradle
6062

6163
- name: Set up Gradle
62-
uses: gradle/actions/setup-gradle@v4
64+
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
6365

6466
- name: Build SDK
6567
run: ./scripts/build
@@ -69,7 +71,7 @@ jobs:
6971
github.repository == 'stainless-sdks/open-transit-java' &&
7072
!startsWith(github.ref, 'refs/heads/stl/')
7173
id: github-oidc
72-
uses: actions/github-script@v8
74+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7375
with:
7476
script: core.setOutput('github_token', await core.getIDToken());
7577

@@ -89,10 +91,10 @@ jobs:
8991
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
9092
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
9193
steps:
92-
- uses: actions/checkout@v6
94+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9395

9496
- name: Set up Java
95-
uses: actions/setup-java@v5
97+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
9698
with:
9799
distribution: temurin
98100
java-version: |
@@ -101,7 +103,7 @@ jobs:
101103
cache: gradle
102104

103105
- name: Set up Gradle
104-
uses: gradle/gradle-build-action@v2
106+
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
105107

106108
- name: Run tests
107109
run: ./scripts/test

.github/workflows/publish-sonatype.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Set up Java
20-
uses: actions/setup-java@v5
20+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
2121
with:
2222
distribution: temurin
2323
java-version: |
@@ -26,7 +26,7 @@ jobs:
2626
cache: gradle
2727

2828
- name: Set up Gradle
29-
uses: gradle/gradle-build-action@v2
29+
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
3030

3131
- name: Publish to Sonatype
3232
run: |-

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'OneBusAway/java-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Check release environment
1818
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.prism.log
2+
.stdy.log
23
.gradle
34
.idea
45
.kotlin

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-4fcbe9547537b22a2d68329e1d94e0c1a6f81b5af734ca213f7b95eef5da7adb.yml
3-
openapi_spec_hash: 417ea17b08e186b15b2986372592185e
4-
config_hash: 3871f5d21bb38ddd334ec04721dea64d
1+
configured_endpoints: 30
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-49611a380a238e29ad714c2f6d66a35ada42e3931d2aad2839afd1f13b585de1.yml
3+
openapi_spec_hash: b03acca245aef78353d3b7a6a4a62eb2
4+
config_hash: ff7ff57d4c7f9c3f7a4f9bae39aa00e3

CHANGELOG.md

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

3+
## 0.1.0-alpha.57 (2026-06-08)
4+
5+
Full Changelog: [v0.1.0-alpha.56...v0.1.0-alpha.57](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.56...v0.1.0-alpha.57)
6+
7+
### Features
8+
9+
* **api:** api update ([97d101f](https://github.com/OneBusAway/java-sdk/commit/97d101f05496b1456a689edc3405c8ec1daf4087))
10+
* **api:** api update ([437baa4](https://github.com/OneBusAway/java-sdk/commit/437baa4d600d5504c7e269a4b6f41381810f6027))
11+
* **api:** api update ([6b55911](https://github.com/OneBusAway/java-sdk/commit/6b55911920235024bc07b4bdfd44768a70df1d48))
12+
* **api:** api update ([fbaadd8](https://github.com/OneBusAway/java-sdk/commit/fbaadd8e2395cc74e3748f486fb17513a211bc1b))
13+
* **api:** api update ([0d4ee8e](https://github.com/OneBusAway/java-sdk/commit/0d4ee8e11408ed9a067d3a45038d1bfe45ad58a3))
14+
* **api:** api update ([1e5faa0](https://github.com/OneBusAway/java-sdk/commit/1e5faa0e778189bb3ffc214ac370b0f8c5085824))
15+
* **api:** api update ([fff5ec2](https://github.com/OneBusAway/java-sdk/commit/fff5ec2ab5207e5e378a1cf59e79922f1f8ade21))
16+
* **client:** improve logging ([80d4a74](https://github.com/OneBusAway/java-sdk/commit/80d4a74241fa268e03504f2fc565df666da77400))
17+
* **client:** more robust error parsing ([8c92200](https://github.com/OneBusAway/java-sdk/commit/8c92200d5138d6ff8acad77742994445992d0c0a))
18+
* **client:** support proxy authentication ([baeb731](https://github.com/OneBusAway/java-sdk/commit/baeb731d323acdc19d58ec4a0134107203f45e18))
19+
* support setting headers via env ([58e75c3](https://github.com/OneBusAway/java-sdk/commit/58e75c3de82e535d8c8a1a69922edc71f231d149))
20+
21+
22+
### Bug Fixes
23+
24+
* **client:** allow updating header/query affecting fields in `toBuilder()` ([3964864](https://github.com/OneBusAway/java-sdk/commit/3964864f1cb0ebea7318a6e0fd68ea12e6705b24))
25+
* **client:** incorrect `Retry-After` parsing ([ee33acf](https://github.com/OneBusAway/java-sdk/commit/ee33acffec6143677ceae8a1e155c31736c0e4e0))
26+
27+
28+
### Performance Improvements
29+
30+
* **client:** create one json mapper ([8157d7e](https://github.com/OneBusAway/java-sdk/commit/8157d7ecfa89ee3ccb179a57c2b8cd0665a1f5d1))
31+
32+
33+
### Chores
34+
35+
* **ci:** skip lint on metadata-only changes ([e23b045](https://github.com/OneBusAway/java-sdk/commit/e23b04511c261dd1b68e84e7302361cae57f8a0c))
36+
* **internal:** bump ktfmt ([ffd9a1b](https://github.com/OneBusAway/java-sdk/commit/ffd9a1b7d321a1a0d89f5d00184ba94341db23aa))
37+
* **internal:** codegen related update ([1cad394](https://github.com/OneBusAway/java-sdk/commit/1cad394444409bd3e6264f2de9d345bf9ff4ac4d))
38+
* **internal:** tweak CI branches ([165398b](https://github.com/OneBusAway/java-sdk/commit/165398b0c6f820ec29093b1122837a990b2ae587))
39+
* **internal:** update gitignore ([2976e04](https://github.com/OneBusAway/java-sdk/commit/2976e04d3381ba91ed619eac4cdb9a001fbf46e8))
40+
* **internal:** update multipart form array serialization ([7208a3c](https://github.com/OneBusAway/java-sdk/commit/7208a3c4f47fc1070808d19e78f3d86c6daa9307))
41+
* **internal:** update retry delay tests ([56092cf](https://github.com/OneBusAway/java-sdk/commit/56092cf073f68b0631750dda62089acb0496affc))
42+
* redact api-key headers in debug logs ([051e173](https://github.com/OneBusAway/java-sdk/commit/051e173193c87cabce6486b1d419e1a5c230c444))
43+
* remove duplicated dokka setup ([88e7490](https://github.com/OneBusAway/java-sdk/commit/88e7490658f71bbe6ae94b8727746b5f34722244))
44+
* **tests:** bump steady to v0.19.4 ([633a61a](https://github.com/OneBusAway/java-sdk/commit/633a61ab965ff86afd6466106c9c1325ace48187))
45+
* **tests:** bump steady to v0.19.5 ([22f82da](https://github.com/OneBusAway/java-sdk/commit/22f82dae778becca20f549b8410a7c1d2c954655))
46+
* **tests:** bump steady to v0.19.6 ([e334755](https://github.com/OneBusAway/java-sdk/commit/e334755a99bdf8f096d8247ffd40e416471db36b))
47+
* **tests:** bump steady to v0.19.7 ([ef0587c](https://github.com/OneBusAway/java-sdk/commit/ef0587c47711d53a97a7982fbf352de7c3f17333))
48+
* **tests:** bump steady to v0.20.1 ([f74e874](https://github.com/OneBusAway/java-sdk/commit/f74e874bd26003286fbf031c340bf1ae25e1de63))
49+
* **tests:** bump steady to v0.20.2 ([7e86c45](https://github.com/OneBusAway/java-sdk/commit/7e86c4531e42593b1f50806efd88afaa2f46bdd1))
50+
* **tests:** bump steady to v0.22.1 ([344888d](https://github.com/OneBusAway/java-sdk/commit/344888d82e5616e2f6e6400c270b8e9e89072bbf))
51+
52+
53+
### Documentation
54+
55+
* clarify forwards compat behavior ([ce30a3c](https://github.com/OneBusAway/java-sdk/commit/ce30a3c1bdf6f81bcb3af3cb10470a68b9065b9b))
56+
57+
58+
### Refactors
59+
60+
* **tests:** switch from prism to steady ([77efbfa](https://github.com/OneBusAway/java-sdk/commit/77efbfa7675a8d7d8335e445ea0caac680017e57))
61+
362
## 0.1.0-alpha.56 (2026-03-07)
463

564
Full Changelog: [v0.1.0-alpha.55...v0.1.0-alpha.56](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.55...v0.1.0-alpha.56)

README.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.56)
6-
[![javadoc](https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.56/javadoc.svg)](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.56)
5+
[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.57)
6+
[![javadoc](https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.57/javadoc.svg)](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.57)
77

88
<!-- x-release-please-end -->
99

@@ -15,7 +15,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1515

1616
<!-- x-release-please-start-version -->
1717

18-
The REST API documentation can be found on [developer.onebusaway.org](https://developer.onebusaway.org). Javadocs are available on [javadoc.io](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.56).
18+
The REST API documentation can be found on [developer.onebusaway.org](https://developer.onebusaway.org). Javadocs are available on [javadoc.io](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.57).
1919

2020
<!-- x-release-please-end -->
2121

@@ -26,7 +26,7 @@ The REST API documentation can be found on [developer.onebusaway.org](https://de
2626
### Gradle
2727

2828
```kotlin
29-
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.56")
29+
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.57")
3030
```
3131

3232
### Maven
@@ -35,7 +35,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.56")
3535
<dependency>
3636
<groupId>org.onebusaway</groupId>
3737
<artifactId>onebusaway-sdk-java</artifactId>
38-
<version>0.1.0-alpha.56</version>
38+
<version>0.1.0-alpha.57</version>
3939
</dependency>
4040
```
4141

@@ -229,8 +229,6 @@ The SDK throws custom unchecked exception types:
229229

230230
## Logging
231231

232-
The SDK uses the standard [OkHttp logging interceptor](https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor).
233-
234232
Enable logging by setting the `ONEBUSAWAY_SDK_LOG` environment variable to `info`:
235233

236234
```sh
@@ -243,6 +241,19 @@ Or to `debug` for more verbose logging:
243241
export ONEBUSAWAY_SDK_LOG=debug
244242
```
245243

244+
Or configure the client manually using the `logLevel` method:
245+
246+
```java
247+
import org.onebusaway.client.OnebusawaySdkClient;
248+
import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient;
249+
import org.onebusaway.core.LogLevel;
250+
251+
OnebusawaySdkClient client = OnebusawaySdkOkHttpClient.builder()
252+
.fromEnv()
253+
.logLevel(LogLevel.INFO)
254+
.build();
255+
```
256+
246257
## ProGuard and R8
247258

248259
Although the SDK uses reflection, it is still usable with [ProGuard](https://github.com/Guardsquare/proguard) and [R8](https://developer.android.com/topic/performance/app-optimization/enable-app-optimization) because `onebusaway-sdk-java-core` is published with a [configuration file](onebusaway-sdk-java-core/src/main/resources/META-INF/proguard/onebusaway-sdk-java-core.pro) containing [keep rules](https://www.guardsquare.com/manual/configuration/usage).
@@ -335,6 +346,21 @@ OnebusawaySdkClient client = OnebusawaySdkOkHttpClient.builder()
335346
.build();
336347
```
337348

349+
If the proxy responds with `407 Proxy Authentication Required`, supply credentials by also configuring `proxyAuthenticator`:
350+
351+
```java
352+
import org.onebusaway.client.OnebusawaySdkClient;
353+
import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient;
354+
import org.onebusaway.core.http.ProxyAuthenticator;
355+
356+
OnebusawaySdkClient client = OnebusawaySdkOkHttpClient.builder()
357+
.fromEnv()
358+
.proxy(...)
359+
// Or a custom implementation of `ProxyAuthenticator`.
360+
.proxyAuthenticator(ProxyAuthenticator.basic("username", "password"))
361+
.build();
362+
```
363+
338364
### Connection pooling
339365

340366
To customize the underlying OkHttp connection pool, configure the client using the `maxIdleConnections` and `keepAliveDuration` methods:
@@ -553,7 +579,9 @@ In rare cases, the API may return a response that doesn't match the expected typ
553579

554580
By default, the SDK will not throw an exception in this case. It will throw [`OnebusawaySdkInvalidDataException`](onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/errors/OnebusawaySdkInvalidDataException.kt) only if you directly access the property.
555581

556-
If you would prefer to check that the response is completely well-typed upfront, then either call `validate()`:
582+
Validating the response is _not_ forwards compatible with new types from the API for existing fields.
583+
584+
If you would still prefer to check that the response is completely well-typed upfront, then either call `validate()`:
557585

558586
```java
559587
import org.onebusaway.models.currenttime.CurrentTimeRetrieveResponse;

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88

99
allprojects {
1010
group = "org.onebusaway"
11-
version = "0.1.0-alpha.56" // x-release-please-version
11+
version = "0.1.0-alpha.57" // x-release-please-version
1212
}
1313

1414
subprojects {
@@ -21,7 +21,6 @@ subprojects {
2121
group = "Verification"
2222
description = "Verifies all source files are formatted."
2323
}
24-
apply(plugin = "org.jetbrains.dokka")
2524
}
2625

2726
subprojects {

buildSrc/src/main/kotlin/onebusaway-sdk.kotlin.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tasks.withType<Test>().configureEach {
4040

4141
val ktfmt by configurations.creating
4242
dependencies {
43-
ktfmt("com.facebook:ktfmt:0.56")
43+
ktfmt("com.facebook:ktfmt:0.61")
4444
}
4545

4646
fun registerKtfmt(

0 commit comments

Comments
 (0)