Skip to content

Commit 48bbedd

Browse files
committed
fix: remove range check on taaacceptance
fixes #55 Signed-off-by: Timo Glastra <timo@animo.id>
1 parent 3a013c0 commit 48bbedd

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

aries_cloudcontroller/model/taa_acceptance.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,6 @@ def __init__(
3636
**kwargs,
3737
)
3838

39-
@validator("time")
40-
def time_max(cls, value):
41-
# Property is optional
42-
if value is None:
43-
return
44-
45-
if value > -1:
46-
raise ValueError(f"time must be less than -1, currently {value}")
47-
return value
48-
49-
@validator("time")
50-
def time_min(cls, value):
51-
# Property is optional
52-
if value is None:
53-
return
54-
55-
if value < 0:
56-
raise ValueError(f"time must be greater than 0, currently {value}")
57-
return value
58-
5939
class Config:
6040
allow_population_by_field_name = True
6141

0 commit comments

Comments
 (0)