BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

CAPVAL: A project is born

This second CAPVAL post announces CAPVAL version 2.0, made compatible with CAP v8 after breaking changes there, with the fix shown as a custom cds.middlewares.after error handler. It restates the plugin's @validation.message annotation alongside standard annotations such as @mandatory as the input validation mechanic the project builds on, and the release otherwise adds automated tests and release-automation GitHub Actions rather than new annotations.

Where it sits

Explains
capvalCAPcapvalcds-pluginReplaces the message a failed [input validation](capability:input-validation) annotation returns, and adds `@validation.handler`, which names a class that runs a check of the developer's own.Input validationCAPInput validationcapabilityRejecting bad input before it reaches the database. While this can be done manually inside a handler, there are solutions in place to derive type, range, enum and mandatory checks from the model definitions.
Since then
No major release of capval since this was published

Who is behind it

MattBrightmanMattBrightmanPersonWrote this
In the atlas: maintains 1, contributes to 1, wrote 2
@MertSAP
author

Before you read it

ApplicabilityVersion driftcds 8, line ended

The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.

Properties

About this work

declared and crawled
Published
declared
Published on
declared

More on this7

Group by
Piece, what it offersStill applies
Also explainingInput validation6
Declarative Programming in CAP: Less Code, More Value
SAP Community, BirgitSThe reasoning
nothing recorded
Extend SAP Cloud Application Programming Model(CAP) Validations with the CAPVAL Plugin
SAP Community, MattBrightmanThe reasoningRunnable code
nothing recorded
#CAP-TechBytes Input Validation
SAP Community, ThajunnizaThe reasoning
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
Learn how to define constraints declaratively in your CDS model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Everything new: Try out the latest features in CAP
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
Extend SAP Cloud Application Programming Model(CAP) Validations with the CAPVAL Plugin
SAP Community, MattBrightmanThe reasoningRunnable code
nothing recorded

Details

Graph5 edges
← POINTS HERE
POINTS OUT →
explainscapvalartifact
explainsInput validationcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:capval-a-project-is-born
JSON
/content/capval-a-project-is-born.json
MCP
Connecting an agent