diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-10-13 14:35:47 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-10-13 14:35:47 +0700 |
commit | e9acf0e1f5d2adfcf38140e62151d718814391f7 (patch) | |
tree | a6e71907a838e86d7a788c25e7bc2728a04a2255 /src | |
parent | 2a1bba7d8b5fbc6a2d665c10ffea110bc7d89b46 (diff) | |
download | rest-query-e9acf0e1f5d2adfcf38140e62151d718814391f7.tar.gz rest-query-e9acf0e1f5d2adfcf38140e62151d718814391f7.tar.bz2 rest-query-e9acf0e1f5d2adfcf38140e62151d718814391f7.zip |
Corrected criterion implicit attrbutes
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala index dca107c..acf952d 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala @@ -10,7 +10,7 @@ object criterion { import DefaultJsonProtocol._ import common._ - implicit def criterionLabelWriter: RootJsonWriter[CriterionLabel] = new RootJsonWriter[CriterionLabel] { + implicit val criterionLabelWriter: RootJsonWriter[CriterionLabel] = new RootJsonWriter[CriterionLabel] { override def write(obj: CriterionLabel) = JsObject( "labelId" -> obj.labelId.toJson, "categoryId" -> obj.categoryId.toJson, @@ -104,7 +104,7 @@ object criterion { case _ => deserializationError(s"Expected Json Object as partial Criterion, but got $json") } - implicit def richCriterionFormat: RootJsonFormat[RichCriterion] = new RootJsonFormat[RichCriterion] { + implicit val richCriterionFormat: RootJsonFormat[RichCriterion] = new RootJsonFormat[RichCriterion] { override def write(obj: RichCriterion): JsValue = JsObject( "id" -> obj.criterion.id.toJson, |