Skip to content

Commit

Permalink
Fixed play-json naming issues (#422)
Browse files Browse the repository at this point in the history
* Fixed play-json naming issues

* Fixed ubuntu with version
  • Loading branch information
przemekiterators authored Dec 16, 2024
1 parent c8e2ac3 commit e10c97f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-20.04]
scala: [2.13.15, 3.3.3]
java: [temurin@17]
runs-on: ${{ matrix.os }}
Expand Down
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 e10c97f

Please sign in to comment.