item_validator_service_interface
interface item_validator_service_interface
Interface for Item Validator services.
Contract for validators responsible for checking universal rules for Item DTOs, such as metadata structure and base field formats. Extension-specific validators should extend this contract when introducing custom validation requirements.
Responsibilities:
- Validate DTO integrity for create/update operations
- Validate TYPE format (implementation must not enforce required TYPE on create)
- Validate status format (without enforcing a fixed list)
- Validate metadata structure and safety
This interface MUST NOT define methods related to business logic, required fields for specific item types, or workflow rules.
Methods
void
void
Details
at line 48
void
validate_create(item_dto_interface $dto)
Validate DTO for "create" operation.
at line 57
void
validate_update(item_dto_interface $dto)
Validate DTO for "update" operation.