Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Made some additional attributes lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Aug 24, 2022
1 parent 9c6266f commit fa8fc9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object ExampleQueriesEndpointTest extends DefaultRunnableSpec {
implicit val decoderBiolinkClass: Decoder[BiolinkClass] = Implicits.biolinkClassDecoder(biolinkData.classes)
implicit val decoderBiolinkPredicate: Decoder[BiolinkPredicate] =
Implicits.biolinkPredicateDecoder(biolinkData.predicates)
implicit val decoderTRAPIAttribute: Decoder[TRAPIAttribute] = deriveDecoder[TRAPIAttribute]
implicit lazy val decoderTRAPIAttribute: Decoder[TRAPIAttribute] = deriveDecoder[TRAPIAttribute]

exampleJson.as[ExampleJsonFile]
}
Expand Down Expand Up @@ -120,7 +120,7 @@ object ExampleQueriesEndpointTest extends DefaultRunnableSpec {
implicit val decoderBiolinkClass: Decoder[BiolinkClass] = Implicits.biolinkClassDecoder(biolinkData.classes)
implicit val decoderBiolinkPredicate: Decoder[BiolinkPredicate] =
Implicits.biolinkPredicateDecoder(biolinkData.predicates)
implicit val decoderTRAPIAttribute: Decoder[TRAPIAttribute] = deriveDecoder[TRAPIAttribute]
implicit lazy val decoderTRAPIAttribute: Decoder[TRAPIAttribute] = deriveDecoder[TRAPIAttribute]

response.as[TRAPIResponse]
}
Expand Down

0 comments on commit fa8fc9c

Please sign in to comment.