{"ref":"content:btp-sapcap-quirky-nuggets-n01-n02","page":"/content/btp-sapcap-quirky-nuggets-n01-n02","json":"/content/btp-sapcap-quirky-nuggets-n01-n02.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"btp-sapcap-quirky-nuggets-n01-n02","title":"#BTP #SAPCAP: Quirky Nuggets (N01-N02)","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/btp-sapcap-quirky-nuggets-n01-n02/ba-p/13552423","content_type":"blog","published_on":"source:sap-community","explains":["capability:input-validation","capability:data-modelling"],"summary":"Walks through two CAP gotchas: the on/before/after phases of custom event handlers, shown with an after handler whose edits only reach the result when the handler returns an object or array, never a primitive; and the @assert.unique annotation, which builds a database uniqueness constraint from the model. For [Input validation](capability:input-validation), the catch is that once the constrained property is nested, @assert.unique must name it by its model dot path (assignment.type) rather than the flattened column [data modelling](capability:data-modelling) compiles it to (assignment_type).","authors":["actor:ajitkp91"],"published":"2023-06-05","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-10-25"},"drafted_with_ai":true},"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":"poor","evidence":"published 41 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2023-06-05"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":2904,"unit":"views"},{"value":2,"unit":"comments"},{"value":13,"unit":"likes"}]},"signals":{"views":2904,"likes":13,"comments":2,"metrics_at":"2026-11-01"},"series":null,"edges":{"authors":[{"ref":"actor:ajitkp91","name":"Ajit Kumar Panda","json":"/actors/ajitkp91.json"}]}}