Skip to content

Commit 95893a9

Browse files
authored
Merge pull request openwallet-foundation#2086 from sicpa-dlab/fix/did-creation-return-schema
fix: create local DID return schema
2 parents dd57c2e + 0ae530c commit 95893a9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

aries_cloudagent/wallet/routes.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
ENDPOINT,
2424
ENDPOINT_TYPE,
2525
INDY_DID,
26-
INDY_OR_KEY_DID,
2726
INDY_RAW_PUBLIC_KEY,
2827
GENERIC_DID,
2928
)
@@ -55,7 +54,7 @@ class WalletModuleResponseSchema(OpenAPISchema):
5554
class DIDSchema(OpenAPISchema):
5655
"""Result schema for a DID."""
5756

58-
did = fields.Str(description="DID of interest", **INDY_OR_KEY_DID)
57+
did = fields.Str(description="DID of interest", **GENERIC_DID)
5958
verkey = fields.Str(description="Public verification key", **INDY_RAW_PUBLIC_KEY)
6059
posture = fields.Str(
6160
description=(
@@ -66,11 +65,7 @@ class DIDSchema(OpenAPISchema):
6665
**DID_POSTURE,
6766
)
6867
method = fields.Str(
69-
description="Did method associated with the DID",
70-
example=SOV.method_name,
71-
validate=validate.OneOf(
72-
[method.method_name for method in [SOV, KEY]]
73-
), # TODO: support more methods
68+
description="Did method associated with the DID", example=SOV.method_name
7469
)
7570
key_type = fields.Str(
7671
description="Key type associated with the DID",

0 commit comments

Comments
 (0)