11 lines
219 B
Python
11 lines
219 B
Python
class Validate:
|
|
"""Validate."""
|
|
|
|
errors = []
|
|
|
|
@property
|
|
def success(self):
|
|
"""Return bool if the validation was a success."""
|
|
if self.errors:
|
|
return False
|
|
return True
|