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
Recently I worked with scala-siren library and figured out that I can't use JSON object in properties property in siren entity, which is quite strange. Here I opened an issue with question kevinswiber/siren#47 where I assume that in properties should be the entiry JSON object.
However, there are some restrictions in siren-scala:
In model.Property there are defined basic type fields (String, Bool, Number, etc) but not JsObj and JsVal which can't represent real json.
In model.Property I see some kind of duplication to thing we have in for example in play.json or any other json library.
So I'd suggest to get rid of model.Property and just generate JsValue to properties property in siren entity.
The text was updated successfully, but these errors were encountered:
Hi guys!
Recently I worked with scala-siren library and figured out that I can't use JSON object in
properties
property in siren entity, which is quite strange. Here I opened an issue with question kevinswiber/siren#47 where I assume that inproperties
should be the entiry JSON object.However, there are some restrictions in siren-scala:
So I'd suggest to get rid of model.Property and just generate JsValue to properties property in siren entity.
The text was updated successfully, but these errors were encountered: