data-model/src/piracyshield_data_model/ticket/item/unprocessed/rule.py

16 lines
421 B
Python
Raw Normal View History

2024-01-21 14:20:04 +01:00
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 TicketItemUnprocessedRule:
"""
Set of rules for unprocessed ticket item status.
"""
NOTE = [
Required(),
String(' .,-&/$€@"'),
Length(minimum = 3, maximum = 512)
]