Skip to content

Commit 2cd7364

Browse files
committed
Add note on Hibernate Validator and Kotlin coroutines
See gh-344
1 parent b5a6790 commit 2cd7364

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spring-graphql-docs/src/docs/asciidoc/index.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,15 @@ Bean validation is useful for <<controllers-schema-mapping-argument>>,
14401440
<<controllers-schema-mapping-projectedpayload-argument,@ProjectedPayload>>
14411441
method parameters, but applies more generally to any method parameter.
14421442

1443+
[WARNING]
1444+
.Validation and Kotlin Coroutines
1445+
====
1446+
Hibernate Validator is not compatible with Kotlin Coroutine methods and fails when
1447+
introspecting their method parameters. Please see
1448+
https://github.com/spring-projects/spring-graphql/issues/344#issuecomment-1082814093[spring-projects/spring-graphql#344 (comment)]
1449+
for links to relevant issues and a suggested workaround.
1450+
====
1451+
14431452

14441453

14451454
[[controllers-batch-mapping]]

0 commit comments

Comments
 (0)