diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-10-04 16:08:12 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-10-04 16:08:12 +0700 |
commit | 996af2657cdd779e08e46fc1ba5f47d9e7c5aac5 (patch) | |
tree | 2114db1e01d39519f56fe81f6603a15c1671e6f6 /src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala | |
parent | 8fdb33cf7cc122ebdb21c03ecaf5f7d2df6684da (diff) | |
download | rest-query-996af2657cdd779e08e46fc1ba5f47d9e7c5aac5.tar.gz rest-query-996af2657cdd779e08e46fc1ba5f47d9e7c5aac5.tar.bz2 rest-query-996af2657cdd779e08e46fc1ba5f47d9e7c5aac5.zip |
Fixed a part of routes, that have wrong spray json writer types
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala index a85d8af..82759ab 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/patienthypothesis.scala @@ -19,8 +19,8 @@ object patienthypothesis { case _ => deserializationError(s"Expected Json Object as partial PatientHypothesis, but got $json") } - implicit val patientHypothesisWriter: JsonWriter[RichPatientHypothesis] = - new JsonWriter[RichPatientHypothesis] { + implicit val patientHypothesisWriter: RootJsonWriter[RichPatientHypothesis] = + new RootJsonWriter[RichPatientHypothesis] { override def write(obj: RichPatientHypothesis): JsValue = { JsObject( "id" -> obj.patientHypothesis.id.toJson, |