Skip to content

Commit

Permalink
🎨 Fix examples (I think)
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Feb 13, 2025
1 parent ea139ce commit 1674205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acapy_agent/messaging/valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<method>[a-zA-Z0-9]+):(?P<did>[a-zA-Z0-9]+):3:"
r"CL:(?P<schema_id>\d+):(?P<tag>[a-zA-Z0-9_-]+)$"
Expand Down Expand Up @@ -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<method>[a-zA-Z0-9]+):(?P<did>[a-zA-Z0-9]+):2:"
r"(?P<schema_name>[a-zA-Z0-9_-]+):(?P<version>[0-9.]+)$"
Expand Down Expand Up @@ -571,7 +571,7 @@ def __init__(self):
class AnoncredsRevRegId(Regexp):
"""Validate value against anoncreds revocation registry identifier specification."""

EXAMPLE = "did:(method):4:did:<method>: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<method1>[a-zA-Z0-9]+):(?P<did1>[a-zA-Z0-9]+):4:"
r"did:(?P<method2>[a-zA-Z0-9]+):(?P<did2>[a-zA-Z0-9]+):3:"
Expand Down

0 comments on commit 1674205

Please sign in to comment.