From c77050517c468964b6026ec2a580a2b8230a8649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Humbert?= Date: Mon, 28 Aug 2023 15:12:31 +0200 Subject: [PATCH] chore: relax connections filter DID format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Humbert --- aries_cloudagent/protocols/connections/v1_0/routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aries_cloudagent/protocols/connections/v1_0/routes.py b/aries_cloudagent/protocols/connections/v1_0/routes.py index 0f24c22f2a..d87fc124e1 100644 --- a/aries_cloudagent/protocols/connections/v1_0/routes.py +++ b/aries_cloudagent/protocols/connections/v1_0/routes.py @@ -28,6 +28,7 @@ INDY_RAW_PUBLIC_KEY_VALIDATE, UUID4_EXAMPLE, UUID4_VALIDATE, + GENERIC_DID_VALIDATE, ) from ....storage.error import StorageError, StorageNotFoundError from ....wallet.error import WalletError @@ -248,7 +249,7 @@ class ConnectionsListQueryStringSchema(OpenAPISchema): ) my_did = fields.Str( required=False, - validate=INDY_DID_VALIDATE, + validate=GENERIC_DID_VALIDATE, metadata={"description": "My DID", "example": INDY_DID_EXAMPLE}, ) state = fields.Str( @@ -260,12 +261,12 @@ class ConnectionsListQueryStringSchema(OpenAPISchema): ) their_did = fields.Str( required=False, - validate=INDY_DID_VALIDATE, + validate=GENERIC_DID_VALIDATE, metadata={"description": "Their DID", "example": INDY_DID_EXAMPLE}, ) their_public_did = fields.Str( required=False, - validate=INDY_DID_VALIDATE, + validate=GENERIC_DID_VALIDATE, metadata={"description": "Their Public DID", "example": INDY_DID_EXAMPLE}, ) their_role = fields.Str(