James Richardson
12/02/2020, 7:27 PMdave
12/02/2020, 8:24 PMVojtěch Knyttl
12/06/2020, 7:22 AMFilter
implemented in the example I am only getting 400 BAD REQUEST
whereas Jackson provides a nice error description. Is it possible to get this very description to log within the logging filter?
https://gist.github.com/knyttl/bd0ffe5474e14a9e64f71d78249bac5bVojtěch Knyttl
12/07/2020, 7:25 PMfield=foo|bar
as input to Path.string().of("field")
- browsers normally escape foo|bar
to foo%7Cbar
which in 249 always arrived as foo|bar
to the controller. Now it arrives as foo%7Cbar
. I can prepare a demo if it helps.Vojtěch Knyttl
12/10/2020, 5:58 AMdata class UpdateRequest(
@get:Size(min = 0, max = 64)
val name: String?,
@get:Size(min = 0, max = 512)
val bio: String?,
)
Sebastian Galkin
12/23/2020, 7:15 PMQuery.composite
supposed to render in the OpenAPI documentation? I'm adding one of these to the meta with queries += Queries.composite {....}
but it doesn't show up in the json outputSebastian Galkin
12/24/2020, 3:21 PMdave
01/07/2021, 7:50 PMdave
01/11/2021, 12:29 PMQuy D X Nguyen
01/11/2021, 2:59 PMRiku
01/13/2021, 8:56 AMRazvan
01/15/2021, 10:01 AMRazvan
01/15/2021, 10:42 AMRazvan
01/15/2021, 11:24 AMQuery.composite
lens for injecting an object in the request, In the doc you give the example:
val pageable = Query.composite {
Pageable(
boolean().defaulted("sortAscending", true)(it),
int().defaulted("page", 1)(it),
int().defaulted("maxResults", 20)(it)
)
}
but it creates a Pageable object from the request. Is it possible to make it bidirectionnal and use the lens to inject these query parms from the object in order to use it like ?
Response(OK).with(
pageable of pageableObject
)
Fabian Braun
01/15/2021, 2:45 PMRazvan
01/16/2021, 4:08 PMimplementation "com.expediagroup:graphql-kotlin-schema-generator:xxx"
gradle dependency ???
As it is I thought it is added by graphql module and couldn't figure out why the guide exemple does not compile,
But reading the github exemple I see it is a separate dependency that should be added.Riku
01/17/2021, 4:00 PMRazvan
01/18/2021, 8:23 AMQuery.enum<EnumType>().required("type")
is supposed to be translated as en enum type in OpenAPI3 specification ? Because it does not.Razvan
01/20/2021, 8:13 PMfun main() {
val storage = ReadWriteCache.Disk()
val withCachedContent = TrafficFilters.ServeCachedFrom(storage).then { Response(OK).body("hello world: ${LocalDateTime.now()}") }
val aRequest = Request(Method.GET, "<http://localhost:8000/>")
println("--- FIRST ----")
println(withCachedContent(aRequest))
Thread.sleep(1000)
println("--- SECOND ----")
println(withCachedContent(aRequest))
}
I expected both output to show the same time and not different ones....s4nchez
01/21/2021, 2:49 PMRoutedRequest
.dave
01/23/2021, 3:35 PMDanielZ
01/24/2021, 8:40 PMCookieTest > cookie with various expires date formats parsed() FAILED
java.lang.AssertionError at CookieTest.kt:215
ClientCookiesTest > cookie expiry uses the same timezone as cookie parsing() FAILED
java.lang.NullPointerException at ClientCookiesTest.kt:88
When I run only “CookieTest > cookie with various expires date formats parsed()” test is passing - but running all tests it’s always failing. Any Ideas?Cosmin Victor Celea
01/26/2021, 1:17 PMava.lang.NoSuchMethodError: java.net.URLDecoder.decode(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
at org.http4k.core.UriKt.toPathDecoded(Uri.kt:71)
at org.http4k.contract.ContractRouteKt$extract$1$1.invoke(ContractRoute.kt:93)
at org.http4k.contract.ContractRouteKt$extract$1$1.invoke(ContractRoute.kt)
at org.http4k.contract.ContractRouteKt.invoke(ContractRoute.kt:88)
at org.http4k.contract.ContractRouteKt.extract(ContractRoute.kt:93)
at org.http4k.contract.ContractRouteKt.access$extract(ContractRoute.kt:1)
at org.http4k.contract.ContractRoute$toRouter$1.match(ContractRoute.kt:46)
at org.http4k.contract.ContractRoutingHttpHandler.match(ContractRoutingHttpHandler.kt:92)
at org.http4k.routing.OrRouter.match(Router.kt:78)
at org.http4k.routing.RouterBasedHttpHandler.match(RouterBasedHttpHandler.kt)
at org.http4k.routing.RouterBasedHttpHandler.match(RouterBasedHttpHandler.kt)
at org.http4k.routing.RouterBasedHttpHandler.invoke(RouterBasedHttpHandler.kt:18)
at org.http4k.routing.RouterBasedHttpHandler.invoke(RouterBasedHttpHandler.kt:13)
at org.http4k.filter.ServerFilters$CatchAll$invoke$1$1.invoke(ServerFilters.kt:252)
at org.http4k.filter.ServerFilters$CatchAll$invoke$1$1.invoke(ServerFilters.kt:248)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt:15)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt)
at org.http4k.server.HttpUndertowHandler.handleRequest(Undertow.kt:41)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
at java.lang.Thread.run(Thread.java:748)
Razvan
02/02/2021, 5:52 PMMrNiamh
02/03/2021, 2:51 PMRazvan
02/03/2021, 6:42 PMResult<R. RemoteFailure>
to Result<R, Response>
but it keeps generating the extension action function with RemoteFailure. Cleaned hole project but still fails with:
Type mismatch: inferred type is Result<LineAidResponse /* = Map<String, String> */, Response> but Result<Map<String, String>, RemoteFailure> was expected
dave
02/05/2021, 9:57 AMDaniel Skogquist Åborg
02/06/2021, 4:05 PMDaniel Skogquist Åborg
02/07/2021, 1:47 AMDaniel Skogquist Åborg
02/07/2021, 1:23 PMDaniel Skogquist Åborg
02/07/2021, 1:23 PMdave
02/07/2021, 1:30 PM