data-model/src/piracyshield_data_model/log/rule.py
2024-01-21 14:20:04 +01:00

21 lines
458 B
Python

from piracyshield_component.validation.rules.required import Required
from piracyshield_component.validation.rules.string import String
from piracyshield_component.validation.rules.length import Length
class LogRule:
"""
Set of rules for log records.
"""
LOG_ID = [
Required(),
String(),
Length(minimum = 32, maximum = 32)
]
MESSAGE = [
Required(),
Length(minimum = 3, maximum = 500)
]