Razvan
12/04/2021, 8:37 PMdata class TestData(
val s1: Int? = null,
val sXe: Int? = null,
)
object TestRoute {
val bodyTest = Body.auto<TestData>().toLens()
operator fun invoke(): ContractRoute {
val metaData: RouteMetaDsl.() -> Unit = {
tags += Tag("aaa")
returning(
Status.OK,
bodyTest to TestData(s1 = 1, sXe = 22)
)
}
return "/test" meta metaData bindContract Method.GET to { _: Request -> Response(Status.OK).with(bodyTest of TestData(s1 = 1, sXe = 12)) }
}
}
if in the example sXe
has a value the /api/swagger.json fails to load:
Could not find sxe in TestData(s1=1, sXe=22)
if i set it to null in the example it loads but when i run the query I get as response body
{
"s1": 1,
"sxe": 12
}
Looks like the uppercase X
is no longer in uppercase...
In 4.17.2.0
"universeCode": "XXX",
"universeLabel": "yyyy",
"familyCode": "11",
dave
12/04/2021, 9:03 PMRazvan
12/04/2021, 9:04 PMdave
12/04/2021, 9:04 PMRazvan
12/04/2021, 9:05 PM"4.14.1.2"
so i guess it might be that 😉seX
it worksdave
12/04/2021, 9:06 PMRazvan
12/04/2021, 9:11 PMdave
12/04/2021, 9:12 PMRazvan
12/04/2021, 9:13 PMdave
12/04/2021, 9:14 PMRazvan
12/04/2021, 9:17 PMdave
12/04/2021, 9:21 PM