andyg
08/11/2021, 8:34 AMval myLens = Query.nonEmptyString().required("ids")...split(";")
Within the route I can insert the request then add functions: myLens(myRequest).split(";")
but is it possible to add the split
to the Lens definition?s4nchez
08/11/2021, 8:38 AM.map
for that:
val lens = Query.nonEmptyString().map { it.split(";") }.required("ids")
println(lens(Request(GET, "").query("ids", "a;b;c")))