Skip to content

clarify @mandatory is not validated in deep updates#2585

Open
mariayord wants to merge 2 commits into
mainfrom
mandatory-deep-update
Open

clarify @mandatory is not validated in deep updates#2585
mariayord wants to merge 2 commits into
mainfrom
mandatory-deep-update

Conversation

@mariayord
Copy link
Copy Markdown
Contributor

@mariayord mariayord commented May 20, 2026

Updated documentation regarding @mandatory annotation. There is no validation on @mandatory in deep updates usecase.

Removed section with @FieldControl, as it is mentioned already in Field Control below

Fixes: https://github.tools.sap/cap/cdsnode/issues/2637

@mariayord mariayord requested a review from renejeglinsky as a code owner May 20, 2026 12:31
@mariayord mariayord requested a review from agoerler May 20, 2026 12:32
@mariayord mariayord changed the title clarify @mandatory is not validated in deep updates, fix wrong info r… clarify @mandatory is not validated in deep updates May 20, 2026
@mariayord mariayord requested a review from johannes-vogel May 20, 2026 12:36
```
::: warning Deep updates not covered
`@mandatory` validation is **not** applied to nested data in deep update operations. To enforce mandatory values in those cases, use the [`not null` constraint](../../cds/cdl#constraints) instead.
:::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:::
:::
[Learn more about `@Fieldcontrol` annotation with `@mandatory`.](#mandatory-1){.learn-more}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants