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
Is fundamentally broken. JsPath.format is used to read and produce JSON objects, but this formatter is producing a JsString. The result, when you attempt to serialise an object that uses this formatter, is this error:
java.lang.RuntimeException: when empty JsPath, expecting JsObject
at play.api.libs.json.JsPath$.step$1(JsPath.scala:141)
at play.api.libs.json.JsPath$.buildSubPath$1(JsPath.scala:156)
at play.api.libs.json.JsPath$.$anonfun$createObj$2(JsPath.scala:173)
at scala.collection.immutable.ArraySeq.foldLeft(ArraySeq.scala:222)
at play.api.libs.json.JsPath$.createObj(JsPath.scala:172)
at play.api.libs.json.PathWrites.$anonfun$at$3(JsConstraints.scala:188)
...
This code:
https://github.com/doriordan/skuber/blob/master/client/src/main/scala/skuber/json/package.scala#L1070-L1072
Is fundamentally broken.
JsPath.format
is used to read and produce JSON objects, but this formatter is producing aJsString
. The result, when you attempt to serialise an object that uses this formatter, is this error:What it should be is this:
The text was updated successfully, but these errors were encountered: