{"ref":"content:sap-tutorial-cap-define-constraints-declaratively","page":"/content/sap-tutorial-cap-define-constraints-declaratively","json":"/content/sap-tutorial-cap-define-constraints-declaratively.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"sap-tutorial-cap-define-constraints-declaratively","title":"Learn how to define constraints declaratively in your CDS model","url":"https://developers.sap.com/tutorials/cap-define-constraints-declaratively","content_type":"tutorial","explains":[{"ref":"capability:input-validation","applies_to":{"ecosystems":["cap"]}},{"ref":"capability:data-modelling","applies_to":{"ecosystems":["cap"]}}],"summary":"Constraints expressed in the model rather than checked in a handler — the distinction the atlas draws between input validation the framework enforces and validation somebody writes.","short":"Declarative constraints in a CDS model","author":"SAP","sources":[{"url":"https://developers.sap.com/tutorials/cap-define-constraints-declaratively","title":"Learn how to define constraints declaratively in your CDS model — SAP Developer Center","checked":"2026-09-08"}],"provenance":{"discovered_via":[{"source":"source:sap-developers","channel":"graphql"}],"first_seen":"2026-09-08"},"drafted_with_ai":true,"published_on":"source:sap-developers","history":[{"date":"2026-10-17","field":"explains","from":null,"to":"applies_to on capability:input-validation (cap); capability:data-modelling (cap)","reason":"Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md)."}]},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"unknown","evidence":"no publication date"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"unknown","evidence":"no publication date to compare"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":null,"edges":{"authors":[]}}