Skip to content

Commit caffe64

Browse files
committed
Rename decoder
1 parent fb800d8 commit caffe64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/client/petstore/scala-sttp-circe/src/main/scala/org/openapitools/client/core/AdditionalTypeSerializers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ trait AdditionalTypeSerializers {
5858
case s => Left(s"Cannot decode '$s' as Double")
5959
})
6060

61-
implicit final lazy val FlexibleByteArrayDecoder: Decoder[Array[Byte]] =
61+
implicit final lazy val Base64OrArrayByteDecoder: Decoder[Array[Byte]] =
6262
Decoder.decodeArray[Byte].or(Decoder.decodeString.emap { s =>
6363
try Right(Base64.getDecoder.decode(s))
6464
catch { case _: IllegalArgumentException => Left(s"Cannot decode '$s' as Base64 Array[Byte]") }

0 commit comments

Comments
 (0)