You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] diverging implicit expansion for type spray.json.JsonFormat[SprayValueEnumJsonFormatTests.this.Request]
[error] starting with macro method jsonValueEnumFormat in trait KebsEnumFormats
[error] val jf = implicitly[JsonFormat[Request]]
The text was updated successfully, but these errors were encountered:
I'm not sure if there's much I can do about it. Probably the depth of implicit search is too big for the compiler. Eg. if you change Option[List[Answer]] to List[Answer] everything is fine. Another workaround is to define implicit val requestFormat = jsonFormatN[Request] manually. It is also true that changing Answer by adding dummy field makes it compile - probably because only RootJsonFormat macro is being expanded in this case.
I do not have any idea how I could solve it. I'll leave this issue open for a while - in case someone might have better idea.
Following code:
Gives compilation error:
The text was updated successfully, but these errors were encountered: