Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: custom code away classname clashes and auth error #90

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private constructor(
private val version: JsonField<Long>,
private val limitExceeded: JsonField<Boolean>,
private val outOfRange: JsonField<Boolean>,
private val list: JsonField<List<List>>,
private val list: JsonField<kotlin.collections.List<List>>,
private val references: JsonField<References>,
private val additionalProperties: Map<String, JsonValue>,
) {
Expand All @@ -43,7 +43,7 @@ private constructor(

fun outOfRange(): Boolean? = outOfRange.getNullable("outOfRange")

fun list(): List<List> = list.getRequired("list")
fun list(): kotlin.collections.List<List> = list.getRequired("list")

fun references(): References = references.getRequired("references")

Expand Down Expand Up @@ -104,7 +104,7 @@ private constructor(
private var version: JsonField<Long> = JsonMissing.of()
private var limitExceeded: JsonField<Boolean> = JsonMissing.of()
private var outOfRange: JsonField<Boolean> = JsonMissing.of()
private var list: JsonField<List<List>> = JsonMissing.of()
private var list: JsonField<kotlin.collections.List<List>> = JsonMissing.of()
private var references: JsonField<References> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

Expand Down Expand Up @@ -158,11 +158,11 @@ private constructor(
@ExcludeMissing
fun outOfRange(outOfRange: JsonField<Boolean>) = apply { this.outOfRange = outOfRange }

fun list(list: List<List>) = list(JsonField.of(list))
fun list(list: kotlin.collections.List<List>) = list(JsonField.of(list))

@JsonProperty("list")
@ExcludeMissing
fun list(list: JsonField<List<List>>) = apply { this.list = list }
fun list(list: JsonField<kotlin.collections.List<List>>) = apply { this.list = list }

fun references(references: References) = references(JsonField.of(references))

Expand Down Expand Up @@ -210,8 +210,8 @@ private constructor(
private val lon: JsonField<Double>,
private val name: JsonField<String>,
private val parent: JsonField<String>,
private val routeIds: JsonField<List<String>>,
private val staticRouteIds: JsonField<List<String>>,
private val routeIds: JsonField<kotlin.collections.List<String>>,
private val staticRouteIds: JsonField<kotlin.collections.List<String>>,
private val wheelchairBoarding: JsonField<String>,
private val additionalProperties: Map<String, JsonValue>,
) {
Expand All @@ -234,9 +234,10 @@ private constructor(

fun parent(): String = parent.getRequired("parent")

fun routeIds(): List<String> = routeIds.getRequired("routeIds")
fun routeIds(): kotlin.collections.List<String> = routeIds.getRequired("routeIds")

fun staticRouteIds(): List<String> = staticRouteIds.getRequired("staticRouteIds")
fun staticRouteIds(): kotlin.collections.List<String> =
staticRouteIds.getRequired("staticRouteIds")

fun wheelchairBoarding(): String? = wheelchairBoarding.getNullable("wheelchairBoarding")

Expand Down Expand Up @@ -302,8 +303,9 @@ private constructor(
private var lon: JsonField<Double> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var parent: JsonField<String> = JsonMissing.of()
private var routeIds: JsonField<List<String>> = JsonMissing.of()
private var staticRouteIds: JsonField<List<String>> = JsonMissing.of()
private var routeIds: JsonField<kotlin.collections.List<String>> = JsonMissing.of()
private var staticRouteIds: JsonField<kotlin.collections.List<String>> =
JsonMissing.of()
private var wheelchairBoarding: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

Expand Down Expand Up @@ -372,18 +374,21 @@ private constructor(
@ExcludeMissing
fun parent(parent: JsonField<String>) = apply { this.parent = parent }

fun routeIds(routeIds: List<String>) = routeIds(JsonField.of(routeIds))
fun routeIds(routeIds: kotlin.collections.List<String>) =
routeIds(JsonField.of(routeIds))

@JsonProperty("routeIds")
@ExcludeMissing
fun routeIds(routeIds: JsonField<List<String>>) = apply { this.routeIds = routeIds }
fun routeIds(routeIds: JsonField<kotlin.collections.List<String>>) = apply {
this.routeIds = routeIds
}

fun staticRouteIds(staticRouteIds: List<String>) =
fun staticRouteIds(staticRouteIds: kotlin.collections.List<String>) =
staticRouteIds(JsonField.of(staticRouteIds))

@JsonProperty("staticRouteIds")
@ExcludeMissing
fun staticRouteIds(staticRouteIds: JsonField<List<String>>) = apply {
fun staticRouteIds(staticRouteIds: JsonField<kotlin.collections.List<String>>) = apply {
this.staticRouteIds = staticRouteIds
}

Expand Down