Skip to content

docs: update validation example - #3972

Merged
IvanDanchev merged 1 commit into
masterfrom
update-validation-kb
Nov 13, 2026
Merged

IvanDanchev merged 1 commit into
masterfrom
update-validation-kb

Conversation

@IvanDanchev

Copy link
Copy Markdown
Contributor

Updates ValidationResult to ensure inline validation messages are shown.

@IvanDanchev
IvanDanchev requested a review from a team as a code owner November 13, 2026 09:37
@IvanDanchev IvanDanchev added the merge-to-production Use this label to get a comment to choose whether to merge the PR to production label Nov 13, 2026
Copilot AI balanced review requested due to automatic review settings November 13, 2026 09:37
@github-actions

Copy link
Copy Markdown
Contributor

Hello @IvanDanchev,

Check the below option if you would like to automatically generate PR to production. The automation uses the branch for the cherry-pick, and then will delete the branch. Please, do not delete it manually.

  • create PR to production

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues remain for the change associating custom validation errors with model properties for inline display.

No open issues 🎉

What changed in this PR

Updates the custom validation example so validation errors associate with the model property and display inline.

Changes:

  • Uses ValidationContext.MemberName instead of DisplayName for the validation result’s member names, while retaining the display name in the error message.
File Description
knowledge-base/​validation-custom-dataannotations-validator.md Corrects the property association in the ValidationResult example.

Review effort: Balanced

@IvanDanchev
IvanDanchev merged commit d85f1fa into master Nov 13, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Here you are the link to your PR to production: #3973

@github-actions
github-actions Bot deleted the update-validation-kb branch November 13, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-to-production Use this label to get a comment to choose whether to merge the PR to production

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants