Skip to content

Commit

Permalink
reads to format for Single/MultiSuccessResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
salamonpavel committed May 24, 2024
1 parent 03a0191 commit 9c307b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import play.api.libs.functional.syntax.toFunctionalBuilderOps
import play.api.libs.json._
import za.co.absa.atum.model.dto.MeasureResultDTO.{ResultValueType, TypedValue}
import za.co.absa.atum.model.dto._
import za.co.absa.atum.server.model.SuccessResponse.SingleSuccessResponse
import za.co.absa.atum.server.model.SuccessResponse.{MultiSuccessResponse, SingleSuccessResponse}

object PlayJsonImplicits {

Expand Down Expand Up @@ -94,7 +94,7 @@ object PlayJsonImplicits {
implicit val readsAtumContextDTO: Reads[AtumContextDTO] = Json.reads[AtumContextDTO]
implicit val writesAtumContextDTO: Writes[AtumContextDTO] = Json.writes[AtumContextDTO]

implicit def readsSingleSuccessResponse[T: Reads]: Reads[SingleSuccessResponse[T]] = Json.reads[SingleSuccessResponse[T]]
implicit def writesSingleSuccessResponse[T: Writes]: Writes[SingleSuccessResponse[T]] = Json.writes[SingleSuccessResponse[T]]
implicit def formatSingleSuccessResponse[T: Format]: Format[SingleSuccessResponse[T]] = Json.format[SingleSuccessResponse[T]]
implicit def formatMultiSuccessResponse[T: Format]: Format[MultiSuccessResponse[T]] = Json.format[MultiSuccessResponse[T]]

}

0 comments on commit 9c307b8

Please sign in to comment.