Skip to content

Commit

Permalink
Merge pull request #279 from walt-id/fix-auditor-swagger
Browse files Browse the repository at this point in the history
fix: auditor swagger api docu
  • Loading branch information
severinstampler authored Mar 30, 2023
2 parents d70ce93 + 2705114 commit 6a97577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/id/walt/auditor/VerificationPolicy.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package id.walt.auditor

import com.beust.klaxon.Json
import com.beust.klaxon.Klaxon
import com.fasterxml.jackson.annotation.JsonIgnore
import id.walt.credentials.w3c.VerifiableCredential
import id.walt.credentials.w3c.VerifiablePresentation
import id.walt.credentials.w3c.schema.SchemaValidatorFactory
Expand Down Expand Up @@ -36,7 +37,7 @@ data class VerificationPolicyMetadata(
val isMutable: Boolean
)

data class VerificationPolicyResult(val result: Boolean, val errors: List<Throwable> = listOf()) {
data class VerificationPolicyResult(val result: Boolean, @JsonIgnore val errors: List<Throwable> = listOf()) {
companion object {
fun success() = VerificationPolicyResult(true)
fun failure(error: Throwable): VerificationPolicyResult {
Expand Down

0 comments on commit 6a97577

Please sign in to comment.