From 1674205a1cd00c442bc40fbae747c0e781b3d1be Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 13 Feb 2025 17:13:50 +0200 Subject: [PATCH] :art: Fix examples (I think) Signed-off-by: ff137 --- acapy_agent/messaging/valid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acapy_agent/messaging/valid.py b/acapy_agent/messaging/valid.py index 57bfc386af..c20c7eed86 100644 --- a/acapy_agent/messaging/valid.py +++ b/acapy_agent/messaging/valid.py @@ -485,7 +485,7 @@ def __init__(self): class AnoncredsCredDefId(Regexp): """Validate value against anoncreds credential definition identifier specification.""" - EXAMPLE = "did:(method):3:CL:20:tag" + EXAMPLE = "did:method:example:3:CL:12:tag1" PATTERN = ( r"^did:(?P[a-zA-Z0-9]+):(?P[a-zA-Z0-9]+):3:" r"CL:(?P\d+):(?P[a-zA-Z0-9_-]+)$" @@ -533,7 +533,7 @@ def __init__(self): class AnoncredsSchemaId(Regexp): """Validate value against indy schema identifier specification.""" - EXAMPLE = "did:(method):2:schema_name:1.0" + EXAMPLE = "did:method:example:2:schema_name:1.0" PATTERN = ( r"^did:(?P[a-zA-Z0-9]+):(?P[a-zA-Z0-9]+):2:" r"(?P[a-zA-Z0-9_-]+):(?P[0-9.]+)$" @@ -571,7 +571,7 @@ def __init__(self): class AnoncredsRevRegId(Regexp): """Validate value against anoncreds revocation registry identifier specification.""" - EXAMPLE = "did:(method):4:did::3:CL:20:tag:CL_ACCUM:0" + EXAMPLE = "did:method:example:4:did:method:example:3:CL:20:tag:CL_ACCUM:0" PATTERN = ( r"^did:(?P[a-zA-Z0-9]+):(?P[a-zA-Z0-9]+):4:" r"did:(?P[a-zA-Z0-9]+):(?P[a-zA-Z0-9]+):3:"