Skip to content

Commit

Permalink
fix-openapi-serialization (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb authored Jun 19, 2023
1 parent eed3572 commit 5c67df7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object AuditorRestController {
it.summary("Verify a W3C VerifiableCredential or VerifiablePresentation").operationId("verifyVP")
.addTagsItem("Verification Policies")
}
.body<VerificationRequest> { it.description("VC or VP verification request object") }
.body<String> { it.description("VerificationRequest (VC or VP verification request object): policies: List<PolicyRequest>, credentials: List<VerifiableCredential>") }
.jsonArray<VerificationResponse>("200") { it.description("Request processed successfully (VP might not be valid)") }

fun createDynamicPolicy(ctx: Context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ object SignatoryController {
" \"credentialSubject\": { \"sd\": true, \"nestedMap\": { \"firstName\": { \"sd\": true }}}\n" +
"}<br>},<br>" + " \"credentialData\": {<br>" + " &nbsp;&nbsp;&nbsp;&nbsp; \"credentialSubject\": {<br>" + " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"firstName\": \"Severin\"<br>" + " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>" + " &nbsp;&nbsp;&nbsp;&nbsp; }<br>" + "}<br>"
)
}.body<IssueCredentialRequest>().json<String>("200")
}.body<String>()
{ it.description("IssueCredentialRequest: templateId: String, config: ProofConfig, credentialData: JsonObject") }.json<String>("200")

fun issueCredentialFromJson(ctx: Context) {
val credentialJson = ctx.body()
Expand Down

0 comments on commit 5c67df7

Please sign in to comment.