File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
aries_cloudcontroller/model Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,6 @@ def did_pattern(cls, value):
4040 raise ValueError (f"Value of did does not match regex pattern ('{ pattern } ')" )
4141 return value
4242
43- @validator ("verkey" )
44- def verkey_pattern (cls , value ):
45- # Property is optional
46- if value is None :
47- return
48-
49- pattern = (
50- r"^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$"
51- )
52- if not re .match (pattern , value ):
53- raise ValueError (
54- f"Value of verkey does not match regex pattern ('{ pattern } ')"
55- )
56- return value
57-
5843 class Config :
5944 allow_population_by_field_name = True
6045
Original file line number Diff line number Diff line change @@ -21,21 +21,6 @@ class GetDIDVerkeyResponse(BaseModel):
2121
2222 verkey : Optional [str ] = None
2323
24- @validator ("verkey" )
25- def verkey_pattern (cls , value ):
26- # Property is optional
27- if value is None :
28- return
29-
30- pattern = (
31- r"^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$"
32- )
33- if not re .match (pattern , value ):
34- raise ValueError (
35- f"Value of verkey does not match regex pattern ('{ pattern } ')"
36- )
37- return value
38-
3924 class Config :
4025 allow_population_by_field_name = True
4126
You can’t perform that action at this time.
0 commit comments