Skip to content

Commit

Permalink
Merge pull request #2086 from sicpa-dlab/fix/did-creation-return-schema
Browse files Browse the repository at this point in the history
fix: create local DID return schema
  • Loading branch information
dbluhm authored Jan 26, 2023
2 parents dd57c2e + 0ae530c commit 95893a9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions aries_cloudagent/wallet/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
ENDPOINT,
ENDPOINT_TYPE,
INDY_DID,
INDY_OR_KEY_DID,
INDY_RAW_PUBLIC_KEY,
GENERIC_DID,
)
Expand Down Expand Up @@ -55,7 +54,7 @@ class WalletModuleResponseSchema(OpenAPISchema):
class DIDSchema(OpenAPISchema):
"""Result schema for a DID."""

did = fields.Str(description="DID of interest", **INDY_OR_KEY_DID)
did = fields.Str(description="DID of interest", **GENERIC_DID)
verkey = fields.Str(description="Public verification key", **INDY_RAW_PUBLIC_KEY)
posture = fields.Str(
description=(
Expand All @@ -66,11 +65,7 @@ class DIDSchema(OpenAPISchema):
**DID_POSTURE,
)
method = fields.Str(
description="Did method associated with the DID",
example=SOV.method_name,
validate=validate.OneOf(
[method.method_name for method in [SOV, KEY]]
), # TODO: support more methods
description="Did method associated with the DID", example=SOV.method_name
)
key_type = fields.Str(
description="Key type associated with the DID",
Expand Down

0 comments on commit 95893a9

Please sign in to comment.