Architecture
Specification
A business rule as an object: composable conditions (and/or/not) for validation, selection and queries – a DDD classic.
Article
Specification: business rules as objects you can combine
The Specification pattern from Domain-Driven Design: named rules with isSatisfiedBy, combining with and, or and not, one rule for validation and querying, translation to SQL via expression trees, the Criteria API and Q objects. Code in C#, TypeScript, Java, Go and Python.
Challenges
- Catalog specifications medium
Around the topic
- ardalis/Specification repo · github · ardalis
- DDD Reference - Domain Language article · web · Domain Language (Eric Evans)
- bliki: Evans Classification article · web · Martin Fowler
- Domain-Driven Design book · openlibrary · Eric Evans
- Sairyss/domain-driven-hexagon repo · github · Sairyss
- Specification - Model Context Protocol article · web · Model Context Protocol
- MCP Specification – version 2025-06-18 changes article · web · Model Context Protocol
- MCP 2026-07-28 Specification: transport going stateless article · web · David Soria Parra
- Ardalis Specification v9 Released article · web · Steve Smith (Ardalis)
- Specification by example book · openlibrary · Gojko Adzic