From 0f5b7a5980dcaa6a7cc1c071337a0e189b24e20f Mon Sep 17 00:00:00 2001 From: dogisgreat Date: Sat, 30 Nov 2024 01:55:02 -0400 Subject: [PATCH] fix: custom code away classname clashes --- .../org/onebusaway/core/ClientOptions.kt | 2 +- .../models/StopsForAgencyListResponse.kt | 35 +++++++++++-------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt index 03d5540..1cccb10 100644 --- a/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt +++ b/onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt @@ -172,7 +172,7 @@ private constructor( headers.put("X-Stainless-Runtime-Version", getJavaVersion()) apiKey?.let { if (!it.isEmpty()) { - headers.put("key", it) + queryParams.put("key", it) } } headers.replaceAll(this.headers.build()) 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 f8f4d8a..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 @@ -24,7 +24,7 @@ private constructor( private val version: JsonField, private val limitExceeded: JsonField, private val outOfRange: JsonField, - private val list: JsonField>, + private val list: JsonField>, private val references: JsonField, private val additionalProperties: Map, ) { @@ -43,7 +43,7 @@ private constructor( fun outOfRange(): Boolean? = outOfRange.getNullable("outOfRange") - fun list(): List = list.getRequired("list") + fun list(): kotlin.collections.List = list.getRequired("list") fun references(): References = references.getRequired("references") @@ -104,7 +104,7 @@ private constructor( private var version: JsonField = JsonMissing.of() private var limitExceeded: JsonField = JsonMissing.of() private var outOfRange: JsonField = JsonMissing.of() - private var list: JsonField> = JsonMissing.of() + private var list: JsonField> = JsonMissing.of() private var references: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -158,11 +158,11 @@ private constructor( @ExcludeMissing fun outOfRange(outOfRange: JsonField) = apply { this.outOfRange = outOfRange } - fun list(list: List) = list(JsonField.of(list)) + fun list(list: kotlin.collections.List) = list(JsonField.of(list)) @JsonProperty("list") @ExcludeMissing - fun list(list: JsonField>) = apply { this.list = list } + fun list(list: JsonField>) = apply { this.list = list } fun references(references: References) = references(JsonField.of(references)) @@ -210,8 +210,8 @@ private constructor( private val lon: JsonField, private val name: JsonField, private val parent: JsonField, - private val routeIds: JsonField>, - private val staticRouteIds: JsonField>, + private val routeIds: JsonField>, + private val staticRouteIds: JsonField>, private val wheelchairBoarding: JsonField, private val additionalProperties: Map, ) { @@ -234,9 +234,10 @@ private constructor( fun parent(): String = parent.getRequired("parent") - fun routeIds(): List = routeIds.getRequired("routeIds") + fun routeIds(): kotlin.collections.List = routeIds.getRequired("routeIds") - fun staticRouteIds(): List = staticRouteIds.getRequired("staticRouteIds") + fun staticRouteIds(): kotlin.collections.List = + staticRouteIds.getRequired("staticRouteIds") fun wheelchairBoarding(): String? = wheelchairBoarding.getNullable("wheelchairBoarding") @@ -302,8 +303,9 @@ private constructor( private var lon: JsonField = JsonMissing.of() private var name: JsonField = JsonMissing.of() private var parent: JsonField = JsonMissing.of() - private var routeIds: JsonField> = JsonMissing.of() - private var staticRouteIds: JsonField> = JsonMissing.of() + private var routeIds: JsonField> = JsonMissing.of() + private var staticRouteIds: JsonField> = + JsonMissing.of() private var wheelchairBoarding: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -372,18 +374,21 @@ private constructor( @ExcludeMissing fun parent(parent: JsonField) = apply { this.parent = parent } - fun routeIds(routeIds: List) = routeIds(JsonField.of(routeIds)) + fun routeIds(routeIds: kotlin.collections.List) = + routeIds(JsonField.of(routeIds)) @JsonProperty("routeIds") @ExcludeMissing - fun routeIds(routeIds: JsonField>) = apply { this.routeIds = routeIds } + fun routeIds(routeIds: JsonField>) = apply { + this.routeIds = routeIds + } - fun staticRouteIds(staticRouteIds: List) = + fun staticRouteIds(staticRouteIds: kotlin.collections.List) = staticRouteIds(JsonField.of(staticRouteIds)) @JsonProperty("staticRouteIds") @ExcludeMissing - fun staticRouteIds(staticRouteIds: JsonField>) = apply { + fun staticRouteIds(staticRouteIds: JsonField>) = apply { this.staticRouteIds = staticRouteIds }