aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala
diff options
context:
space:
mode:
authorAleksandr <ognelisar@gmail.com>2017-10-04 16:08:12 +0700
committerAleksandr <ognelisar@gmail.com>2017-10-04 16:08:12 +0700
commit996af2657cdd779e08e46fc1ba5f47d9e7c5aac5 (patch)
tree2114db1e01d39519f56fe81f6603a15c1671e6f6 /src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala
parent8fdb33cf7cc122ebdb21c03ecaf5f7d2df6684da (diff)
downloadrest-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/criterion.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/criterion.scala2
1 files changed, 1 insertions, 1 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 8da719c..89c843f 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 val criterionLabelWriter = new JsonWriter[CriterionLabel] {
+ implicit val criterionLabelWriter = new RootJsonWriter[CriterionLabel] {
override def write(obj: CriterionLabel) = JsObject(
"labelId" -> obj.labelId.toJson,
"categoryId" -> obj.categoryId.toJson,