diff options
author | Vyatcheslav Suharnikov <arz.freezy@gmail.com> | 2017-07-13 05:55:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 05:55:28 +0300 |
commit | 3d902b5197db861c30325c159dc10cfb211ae209 (patch) | |
tree | d95187e353f2b03644ec02d8a92711ce9ec69efb /src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala | |
parent | 7ab16021fe2b7e1f7d9d7800458e737d015e7630 (diff) | |
parent | e2313321736520e6acaeb9aaa6ab426e6a8415ff (diff) | |
download | rest-query-3d902b5197db861c30325c159dc10cfb211ae209.tar.gz rest-query-3d902b5197db861c30325c159dc10cfb211ae209.tar.bz2 rest-query-3d902b5197db861c30325c159dc10cfb211ae209.zip |
Merge pull request #6 from drivergroup/PDSUI-2018v0.1.24
PDSUI-2018 Change user type from LongId to StringId
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala index 859972c..c01e65c 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiDocument.scala @@ -20,9 +20,9 @@ final case class ApiDocument(id: Long, requiredType: Option[String], status: Option[String], previousStatus: Option[String], - assignee: Option[Long], - previousAssignee: Option[Long], - lastActiveUser: Option[Long], + assignee: Option[String], + previousAssignee: Option[String], + lastActiveUser: Option[String], meta: Option[String]) object ApiDocument { @@ -48,9 +48,9 @@ object ApiDocument { (JsPath \ "requiredType").formatNullable[String] and (JsPath \ "status").formatNullable(statusFormat) and (JsPath \ "previousStatus").formatNullable(statusFormat) and - (JsPath \ "assignee").formatNullable[Long] and - (JsPath \ "previousAssignee").formatNullable[Long] and - (JsPath \ "lastActiveUser").formatNullable[Long] and + (JsPath \ "assignee").formatNullable[String] and + (JsPath \ "previousAssignee").formatNullable[String] and + (JsPath \ "lastActiveUser").formatNullable[String] and (JsPath \ "meta").formatNullable(Format(Reads { x => JsSuccess(Json.stringify(x)) }, Writes[String](Json.parse))) |