dotnet / dotnet/aspnetcore

Support validation of nested collections in Microsoft.Extensions.Validation

Open
#69,016 3 comments 1 reaction 0 assignees View on GitHub
area-minimal feature-validation
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Today, when we encounter a collection, we simply unwrap it and try to get validatable type info for its direct elements. We don't support nested collections like `Model[][]` or `List`, etc.

### Describe the solution you'd like

Support nested collections.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by tracing how Microsoft.Extensions.Validation unwraps collections and obtains validatable type information; done means nested cases such as Model[][] and List are validated correctly, with focused tests covering both examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.