diff --git a/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala b/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala index 0b6abf288..6caec830c 100644 --- a/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala +++ b/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala @@ -211,8 +211,8 @@ object AvroCodec { private def decodeEnum[Z](raw: Any, cases: Schema.Case[Z, _]*): Either[DecodeError, Any] = raw match { - case enum: GenericData.EnumSymbol => - decodeGenericEnum(enum.toString, None, cases: _*) + case enums: GenericData.EnumSymbol => + decodeGenericEnum(enums.toString, None, cases: _*) case gr: GenericData.Record => val enumCaseName = gr.getSchema.getFullName if (gr.hasField("value")) {