mirror of
https://github.com/fuckpiracyshield/data-model.git
synced 2024-05-19 21:46:18 +02:00
21 lines
458 B
Python
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)
|
|
]
|