From f955494f1ee7e8f30e8105b40f43fabf7c414148 Mon Sep 17 00:00:00 2001 From: Ahmedhossamdev Date: Sun, 22 Dec 2024 04:13:59 +0000 Subject: [PATCH 1/2] feat: chore: linting and formatting --- .../models/SearchForStopListResponse.kt | 11 +++++--- .../models/StopsForAgencyListResponse.kt | 4 ++- .../models/StopsForLocationListResponse.kt | 11 +++++--- .../models/TripsForLocationListResponse.kt | 7 +++-- .../models/TripsForRouteListResponse.kt | 28 ++++++++++++------- .../models/VehiclesForAgencyListResponse.kt | 13 +++++---- 6 files changed, 47 insertions(+), 27 deletions(-) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt index 2932ce7..7b79e50 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt @@ -450,16 +450,19 @@ private constructor( @JsonProperty("routeIds") @ExcludeMissing - fun routeIds(routeIds: JsonField>) = apply { this.routeIds = routeIds } + fun routeIds(routeIds: JsonField>) = apply { + this.routeIds = routeIds + } fun staticRouteIds(staticRouteIds: kotlin.collections.List) = staticRouteIds(JsonField.of(staticRouteIds)) @JsonProperty("staticRouteIds") @ExcludeMissing - fun staticRouteIds(staticRouteIds: JsonField>) = apply { - this.staticRouteIds = staticRouteIds - } + fun staticRouteIds(staticRouteIds: JsonField>) = + apply { + this.staticRouteIds = staticRouteIds + } fun wheelchairBoarding(wheelchairBoarding: String) = wheelchairBoarding(JsonField.of(wheelchairBoarding)) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForAgencyListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForAgencyListResponse.kt index 29382df..0c3ca1e 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForAgencyListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForAgencyListResponse.kt @@ -379,7 +379,9 @@ private constructor( @JsonProperty("routeIds") @ExcludeMissing - fun routeIds(routeIds: JsonField>) = apply { this.routeIds = routeIds } + fun routeIds(routeIds: JsonField>) = apply { + this.routeIds = routeIds + } fun staticRouteIds(staticRouteIds: kotlin.collections.List) = staticRouteIds(JsonField.of(staticRouteIds)) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt index 9407c68..511cd9e 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt @@ -450,16 +450,19 @@ private constructor( @JsonProperty("routeIds") @ExcludeMissing - fun routeIds(routeIds: JsonField>) = apply { this.routeIds = routeIds } + fun routeIds(routeIds: JsonField>) = apply { + this.routeIds = routeIds + } fun staticRouteIds(staticRouteIds: kotlin.collections.List) = staticRouteIds(JsonField.of(staticRouteIds)) @JsonProperty("staticRouteIds") @ExcludeMissing - fun staticRouteIds(staticRouteIds: JsonField>) = apply { - this.staticRouteIds = staticRouteIds - } + fun staticRouteIds(staticRouteIds: JsonField>) = + apply { + this.staticRouteIds = staticRouteIds + } fun wheelchairBoarding(wheelchairBoarding: String) = wheelchairBoarding(JsonField.of(wheelchairBoarding)) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt index 7a82f9b..a31c56f 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt @@ -1463,9 +1463,10 @@ private constructor( /** References to situation elements (if any) applicable to this trip. */ @JsonProperty("situationIds") @ExcludeMissing - fun situationIds(situationIds: JsonField>) = apply { - this.situationIds = situationIds - } + fun situationIds(situationIds: JsonField>) = + apply { + this.situationIds = situationIds + } /** Current status modifiers for the trip. */ fun status(status: String) = status(JsonField.of(status)) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt index 1fff72a..e8c06e7 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt @@ -273,7 +273,8 @@ private constructor( fun serviceDate(): Long? = serviceDate.getNullable("serviceDate") - fun situationIds(): kotlin.collections.List? = situationIds.getNullable("situationIds") + fun situationIds(): kotlin.collections.List? = + situationIds.getNullable("situationIds") fun tripId(): String = tripId.getRequired("tripId") @@ -320,7 +321,8 @@ private constructor( private var frequency: JsonField = JsonMissing.of() private var serviceDate: JsonField = JsonMissing.of() - private var situationIds: JsonField> = JsonMissing.of() + private var situationIds: JsonField> = + JsonMissing.of() private var tripId: JsonField = JsonMissing.of() private var schedule: JsonField = JsonMissing.of() private var status: JsonField = JsonMissing.of() @@ -424,7 +426,8 @@ private constructor( fun previousTripId(): String = previousTripId.getRequired("previousTripId") - fun stopTimes(): kotlin.collections.List = stopTimes.getRequired("stopTimes") + fun stopTimes(): kotlin.collections.List = + stopTimes.getRequired("stopTimes") fun timeZone(): String = timeZone.getRequired("timeZone") @@ -467,7 +470,8 @@ private constructor( private var frequency: JsonField = JsonMissing.of() private var nextTripId: JsonField = JsonMissing.of() private var previousTripId: JsonField = JsonMissing.of() - private var stopTimes: JsonField> = JsonMissing.of() + private var stopTimes: JsonField> = + JsonMissing.of() private var timeZone: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -505,7 +509,8 @@ private constructor( this.previousTripId = previousTripId } - fun stopTimes(stopTimes: kotlin.collections.List) = stopTimes(JsonField.of(stopTimes)) + fun stopTimes(stopTimes: kotlin.collections.List) = + stopTimes(JsonField.of(stopTimes)) @JsonProperty("stopTimes") @ExcludeMissing @@ -883,7 +888,8 @@ private constructor( fun serviceDate(): Long = serviceDate.getRequired("serviceDate") /** References to situation elements (if any) applicable to this trip. */ - fun situationIds(): kotlin.collections.List? = situationIds.getNullable("situationIds") + fun situationIds(): kotlin.collections.List? = + situationIds.getNullable("situationIds") /** Current status modifiers for the trip. */ fun status(): String = status.getRequired("status") @@ -1096,7 +1102,8 @@ private constructor( private var scheduleDeviation: JsonField = JsonMissing.of() private var scheduledDistanceAlongTrip: JsonField = JsonMissing.of() private var serviceDate: JsonField = JsonMissing.of() - private var situationIds: JsonField> = JsonMissing.of() + private var situationIds: JsonField> = + JsonMissing.of() private var status: JsonField = JsonMissing.of() private var totalDistanceAlongTrip: JsonField = JsonMissing.of() private var vehicleId: JsonField = JsonMissing.of() @@ -1433,9 +1440,10 @@ private constructor( /** References to situation elements (if any) applicable to this trip. */ @JsonProperty("situationIds") @ExcludeMissing - fun situationIds(situationIds: JsonField>) = apply { - this.situationIds = situationIds - } + fun situationIds(situationIds: JsonField>) = + apply { + this.situationIds = situationIds + } /** Current status modifiers for the trip. */ fun status(status: String) = status(JsonField.of(status)) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt index 616c1ab..b477308 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt @@ -735,7 +735,8 @@ private constructor( fun serviceDate(): Long = serviceDate.getRequired("serviceDate") /** References to situation elements (if any) applicable to this trip. */ - fun situationIds(): kotlin.collections.List? = situationIds.getNullable("situationIds") + fun situationIds(): kotlin.collections.List? = + situationIds.getNullable("situationIds") /** Current status modifiers for the trip. */ fun status(): String = status.getRequired("status") @@ -948,7 +949,8 @@ private constructor( private var scheduleDeviation: JsonField = JsonMissing.of() private var scheduledDistanceAlongTrip: JsonField = JsonMissing.of() private var serviceDate: JsonField = JsonMissing.of() - private var situationIds: JsonField> = JsonMissing.of() + private var situationIds: JsonField> = + JsonMissing.of() private var status: JsonField = JsonMissing.of() private var totalDistanceAlongTrip: JsonField = JsonMissing.of() private var vehicleId: JsonField = JsonMissing.of() @@ -1285,9 +1287,10 @@ private constructor( /** References to situation elements (if any) applicable to this trip. */ @JsonProperty("situationIds") @ExcludeMissing - fun situationIds(situationIds: JsonField>) = apply { - this.situationIds = situationIds - } + fun situationIds(situationIds: JsonField>) = + apply { + this.situationIds = situationIds + } /** Current status modifiers for the trip. */ fun status(status: String) = status(JsonField.of(status)) From 32344b8a52035cb5a8e2b878349fa4ccf8cdfdef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 04:14:12 +0000 Subject: [PATCH 2/2] release: 0.1.0-alpha.40 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 4 ++-- build.gradle.kts | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0f02ea1..db3930f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.39" + ".": "0.1.0-alpha.40" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 23cfcc3..bc1bbb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.40 (2024-12-22) + +Full Changelog: [v0.1.0-alpha.39...v0.1.0-alpha.40](https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.39...v0.1.0-alpha.40) + +### Features + +* chore: linting and formatting ([f955494](https://github.com/OneBusAway/kotlin-sdk/commit/f955494f1ee7e8f30e8105b40f43fabf7c414148)) + ## 0.1.0-alpha.39 (2024-12-22) Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.38...v0.1.0-alpha.39) diff --git a/README.md b/README.md index 0b42af3..079f3bf 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The REST API documentation can be foundĀ on [developer.onebusaway.org](https://d ```kotlin -implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.39") +implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.40") ``` #### Maven @@ -30,7 +30,7 @@ implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.39") org.onebusaway onebusaway-sdk-kotlin - 0.1.0-alpha.39 + 0.1.0-alpha.40 ``` diff --git a/build.gradle.kts b/build.gradle.kts index dca21d1..ec3e823 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "org.onebusaway" - version = "0.1.0-alpha.39" // x-release-please-version + version = "0.1.0-alpha.40" // x-release-please-version } nexusPublishing {