Skip to content

Commit

Permalink
updates to the revocation routes affected by anoncreds-rs
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Sherman <tools@usingtechnolo.gy>
  • Loading branch information
usingtechnology committed Oct 18, 2023
1 parent 0212fee commit a971a4f
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 547 deletions.
6 changes: 4 additions & 2 deletions aries_cloudagent/revocation/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from marshmallow import fields, validate, validates_schema
from marshmallow.exceptions import ValidationError

from ..anoncreds.models.anoncreds_revocation import RevRegDefState

from ..anoncreds.default.legacy_indy.registry import LegacyIndyRegistry
from ..anoncreds.base import (
AnonCredsObjectNotFound,
Expand Down Expand Up @@ -367,8 +369,8 @@ class SetRevRegStateQueryStringSchema(OpenAPISchema):
required=True,
validate=validate.OneOf(
[
getattr(IssuerRevRegRecord, m)
for m in vars(IssuerRevRegRecord)
getattr(RevRegDefState, m)
for m in vars(RevRegDefState)
if m.startswith("STATE_")
]
),
Expand Down
Loading

0 comments on commit a971a4f

Please sign in to comment.