Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working after 0.40.2 update #73

Open
leangl opened this issue Jul 4, 2019 · 2 comments
Open

Not working after 0.40.2 update #73

leangl opened this issue Jul 4, 2019 · 2 comments

Comments

@leangl
Copy link

leangl commented Jul 4, 2019

After upgrading to 0.40.2 it stopped working. I'm using Play 2.7.3. Version 0.30.1 worked just fine.

This is the error I get:

Image.scala:13:81: not found: value JsSuccess [error] implicit lazy val jsonFormat: OFormat[Image] = Jsonx.formatCaseClassUseDefaults[Image]

case class Image(url: String,
                 size: Option[Size] = None,
                 owned: Boolean = false,
                 thumbnails: List[Image] = List())

object Image {

  implicit lazy val jsonFormat: OFormat[Image] = Jsonx.formatCaseClassUseDefaults[Image]

}

case class Size(width: Int,
                height: Int)

object Size {

  implicit lazy val jsonFormat: OFormat[Size] = Jsonx.formatCaseClassUseDefaults[Size]

}
@osbornk
Copy link

osbornk commented Aug 29, 2019

I am getting this issue as well. If there is something else we need to add, it is unclear.

@pavelhlushchanka
Copy link

pavelhlushchanka commented Oct 11, 2019

add import play.api.libs.json.JsSuccess as a workaround
there is pr for that #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants