Skip to content

Commit

Permalink
Bring back kebsValueEnumUnmarshaller
Browse files Browse the repository at this point in the history
  • Loading branch information
agrodowski committed Oct 31, 2023
1 parent b66483f commit 98b6ab2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ trait ValueEnumUnmarshallers extends EnumUnmarshallers {
}
}

// given kebsValueEnumUnmarshaller[V, E <: { def value: V }](using `enum`: ValueEnumLike[V, E], cls: ClassTag[V]): Unmarshaller[V, E] =
// valueEnumUnmarshaller
given kebsValueEnumUnmarshaller[V, E <: { def value: V }](using `enum`: ValueEnumLike[V, E], cls: ClassTag[V]): Unmarshaller[V, E] =
valueEnumUnmarshaller

given kebsIntValueEnumFromStringUnmarshaller[E <: { def value: Int }](using ev: ValueEnumLike[Int, E]): FromStringUnmarshaller[E] =
intFromStringUnmarshaller andThen valueEnumUnmarshaller
Expand Down

0 comments on commit 98b6ab2

Please sign in to comment.