Flight Log / dotnet/aspnetcore #62027
Fix attributes on primary constructor parameters in OpenAPI documents — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in dotnet/aspnetcore on May 20, 2025; a burn — closed unmerged after human review: +414 −228, 4 files, 0 reviews.
- Lines
- +414 −228
- Files
- 4
- Commits
- 7
- Reviews
- 0
- To merge
- —
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
GitHub Copilot takes a fix task in dotnet/aspnetcore. Validation attributes like Range on class primary constructor parameters are missing from generated OpenAPI documents. The change spans four files, 414 additions and 228 deletions, over seven commits. The reviewer asks that attributes work without targeting the property. Closed unmerged after human review: a burn.
“@copilot Good start! Can you update the implementation so that attributes work even when they don't target the property. For example, the example below should”
— from the review (source)
From the pull request description
## Problem Currently, validation attributes (like `[Range]`) on primary constructor parameters in class types aren't being reflected in generated OpenAPI documents. While record types correctly show these attributes, class types don't: ```csharp // Works: Schema includes age range constraints of 0…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- May 20, 2025labeleddotnet-policy-service[bot]
Read next
Cite this flight: AgentRiders Flight Log, dotnet/aspnetcore#62027, record updated Nov 4, 2026, https://agentriders.com/logs/dotnet/aspnetcore/62027/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.