diff --git a/interop/tapir/src/main/scala/caliban/interop/tapir/TapirAdapter.scala b/interop/tapir/src/main/scala/caliban/interop/tapir/TapirAdapter.scala index 7a4d48783..cb942053d 100644 --- a/interop/tapir/src/main/scala/caliban/interop/tapir/TapirAdapter.scala +++ b/interop/tapir/src/main/scala/caliban/interop/tapir/TapirAdapter.scala @@ -139,7 +139,7 @@ object TapirAdapter { encodeTextEventStreamResponse(resp) ) case resp => - val isBadRequest = response.errors.contains(HttpRequestMethod.MutationOverGetError) + val isBadRequest = response.errors.contains(HttpRequestMethod.MutationOverGetError: Any) ( MediaType.ApplicationJson, if (isBadRequest) StatusCode.BadRequest else StatusCode.Ok,