-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bassam Riman <bassam.riman@iohk.io>
- Loading branch information
1 parent
759cbe8
commit 913fc5e
Showing
10 changed files
with
248 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...main/scala/io/iohk/atala/verification/controller/http/ParameterizableVcVerification.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.iohk.atala.verification.controller.http | ||
|
||
import sttp.tapir.Schema | ||
import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonDecoder, JsonEncoder} | ||
|
||
final case class ParameterizableVcVerification( | ||
verification: VcVerification, | ||
parameter: Option[VcVerificationParameter] | ||
) | ||
object ParameterizableVcVerification { | ||
given encoder: JsonEncoder[ParameterizableVcVerification] = | ||
DeriveJsonEncoder.gen[ParameterizableVcVerification] | ||
|
||
given decoder: JsonDecoder[ParameterizableVcVerification] = | ||
DeriveJsonDecoder.gen[ParameterizableVcVerification] | ||
|
||
given schema: Schema[ParameterizableVcVerification] = Schema.derived | ||
} |
Oops, something went wrong.