Skip to content

Commit

Permalink
Fixed play-json naming issues
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekiterators committed Dec 16, 2024
1 parent 183ecdb commit 9077a4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ trait KebsPlayJsonEnums {

implicit def enumEncoderImpl[E](implicit ev: EnumLike[E]): Writes[E] = enumEncoder(ev)

trait KebsCirceEnumsUppercase {
trait KebsPlayJsonEnumsUppercase {
implicit def enumDecoderImpl[E](implicit ev: EnumLike[E]): Reads[E] =
uppercaseEnumDecoder(ev)

implicit def enumEncoderImpl[E](implicit ev: EnumLike[E]): Writes[E] =
uppercaseEnumEncoder(ev)
}

trait KebsCirceEnumsLowercase {
trait KebsPlayJsonEnumsLowercase {
implicit def enumDecoderImpl[E](implicit ev: EnumLike[E]): Reads[E] =
lowercaseEnumDecoder(ev)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pl.iterators.kebs.playjson

package object enums extends KebsPlayJsonEnums with KebsPlayJsonValueEnums {
object uppercase extends KebsCirceEnumsUppercase with KebsPlayJsonValueEnums
object lowercase extends KebsCirceEnumsLowercase with KebsPlayJsonValueEnums
object uppercase extends KebsPlayJsonEnumsUppercase with KebsPlayJsonValueEnums
object lowercase extends KebsPlayJsonEnumsLowercase with KebsPlayJsonValueEnums
}

0 comments on commit 9077a4c

Please sign in to comment.