From 2cd73640697d2cac6270223c0170d84b369abbe3 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Thu, 14 Apr 2022 17:23:01 +0100 Subject: [PATCH] Add note on Hibernate Validator and Kotlin coroutines See gh-344 --- spring-graphql-docs/src/docs/asciidoc/index.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index 561ea608..d6f8a65a 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -1440,6 +1440,15 @@ Bean validation is useful for <>, <> method parameters, but applies more generally to any method parameter. +[WARNING] +.Validation and Kotlin Coroutines +==== +Hibernate Validator is not compatible with Kotlin Coroutine methods and fails when +introspecting their method parameters. Please see +https://github.com/spring-projects/spring-graphql/issues/344#issuecomment-1082814093[spring-projects/spring-graphql#344 (comment)] +for links to relevant issues and a suggested workaround. +==== + [[controllers-batch-mapping]]