canton7 / canton7/Stylet

Clarify docs around `ValidatingModelBase.GetErrors(null)`

Open
#129 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.1k
Forks
155
PR merge metrics
No merged PRs in 30d

Description

Hi,
Method ValidatingModelBase.GetErrors(string propertyName) supposed to return entity-level errors if propertyName is null or string.empty (as it said in description):
`The name of the property to retrieve validation errors for; or null or System.String.Empty, to retrieve entity-level errors.`

However, it's always returns **null** if no propertyName is set.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate ValidatingModelBase.GetErrors(string propertyName) and read its implementation alongside the XML documentation quoted in the issue. Verify the behavior for null and string.Empty, then align the documentation or behavior with the intended entity-level error contract; done when the documented and observed behavior agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.