From 4f294296ce3f0ee50193d93697353812f3326602 Mon Sep 17 00:00:00 2001 From: Andy Gallagher Date: Fri, 28 Jun 2024 17:21:57 +0100 Subject: [PATCH] Make the ContentApiQuery type convariant in Response --- .../src/main/scala/com.gu.contentapi.client/model/Queries.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/scala/com.gu.contentapi.client/model/Queries.scala b/client/src/main/scala/com.gu.contentapi.client/model/Queries.scala index 2341c9c4..c9f42831 100644 --- a/client/src/main/scala/com.gu.contentapi.client/model/Queries.scala +++ b/client/src/main/scala/com.gu.contentapi.client/model/Queries.scala @@ -8,7 +8,7 @@ import com.gu.contentapi.client.{Parameter, Parameters} import com.gu.contentatom.thrift.AtomType import com.twitter.scrooge.ThriftStruct -sealed trait ContentApiQuery[Response <: ThriftStruct] { +sealed trait ContentApiQuery[+Response <: ThriftStruct] { def parameters: Map[String, String] def pathSegment: String