Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Apr 20, 2024
1 parent 625cd85 commit 86efb8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ object DerivedBinaryCodec extends DerivedBinaryCodecVersionSpecific {
case Schema.Either(left, right, annotations) => None
case Schema.Lazy(schema0) => findTopLevelOptionalNode(schema0())
case Schema.Dynamic(annotations) => None
case Schema.Fallback(left, right, schema, annotations) => None
}

private def fieldToDeserializationCommand(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ package object schemas {
Schema.fail("__builtin_throwable_codec__")

val builtInArrayCodecTypeId: TypeId = TypeId.parse("scala.Array")
implicit def builtInArrayCodec[A: ClassTag](implicit elemSchema: Schema[A]): Schema[Array[A]] =
implicit def builtInArrayCodec[A](implicit elemSchema: Schema[A]): Schema[Array[A]] =
Schema.CaseClass1[A, Array[A]](
builtInArrayCodecTypeId,
Schema.Field[Array[A], A]("element", elemSchema, get0 = _ => ???, set0 = (_, _) => ???),
(_: A) => ???,
annotations0 = Chunk(implicitly[ClassTag[A]])
annotations0 = Chunk.empty
)

val builtInTryCodecTypeId: TypeId = TypeId.parse("scala.util.Try")
Expand Down Expand Up @@ -62,7 +62,7 @@ package object schemas {
)

val typeRegistryTypeId: TypeId = TypeId.parse("io.github.vigoo.desert.TypeRegistry")
def codecFromTypeRegistry[A: ClassTag]: Schema[A] =
def codecFromTypeRegistry[A]: Schema[A] =
Schema.CaseClass1[Nothing, A](
typeRegistryTypeId,
Schema.Field[A, Nothing](
Expand All @@ -72,6 +72,6 @@ package object schemas {
set0 = (_, _) => ???
),
(_: A) => ???,
annotations0 = Chunk(implicitly[ClassTag[A]])
annotations0 = Chunk.empty
)
}

0 comments on commit 86efb8d

Please sign in to comment.