Skip to content

Commit ce86764

Browse files
committed
Remove trait after use
1 parent 8eee63e commit ce86764

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/smithy4s/src/main/scala/jsonrpclib/smithy4sinterop/JsonPayloadTransformation.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ private[jsonrpclib] object JsonPayloadTransformation extends (Schema ~> Schema)
1313
struct.fields
1414
.collectFirst {
1515
case field if field.hints.has[JsonRpcPayload] =>
16-
field.schema.biject[b]((f: Any) => struct.make(Vector(f)))(field.get)
16+
field.schema
17+
.transformHintsLocally(_.filterNot(_.keyId == JsonRpcPayload.id))
18+
.biject[b]((f: Any) => struct.make(Vector(f)))(field.get)
1719
}
1820
.getOrElse(fa)
1921
case _ => fa

0 commit comments

Comments
 (0)