domain-validation

Official

Enforce domain rules before saving entities.

AuthorZoppy-crm
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Domain validations ensure business rules are consistently enforced before persisting entities, preventing invalid data from entering the system and reducing downstream errors.

Core Features & Use Cases

  • DomainValidation<T> base class that collects validation errors, supports asynchronous checks, and raises a unified UnprocessableEntityException when necessary.
  • Application Service integration with Scope.REQUEST to run domain validations before saving via a reusable validation pipeline.
  • Cross-entity reuse of validation logic to guarantee consistent rules across create and update operations.

Quick Start

Create a domain validation class extending DomainValidation for your entity and invoke its execute method within your application service before persisting the entity.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: domain-validation
Download link: https://github.com/Zoppy-crm/.github/archive/main.zip#domain-validation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.