Skip to content

Improve endpoint registration detection in generator#142

Merged
cloudfy merged 1 commit intomainfrom
141-arcturusextensionsvalidationaspnetcore-not-generting-code
Feb 25, 2026
Merged

Improve endpoint registration detection in generator#142
cloudfy merged 1 commit intomainfrom
141-arcturusextensionsvalidationaspnetcore-not-generting-code

Conversation

@cloudfy
Copy link
Copy Markdown
Owner

@cloudfy cloudfy commented Feb 25, 2026

Enhanced FindEndpointRegistration to better locate original endpoint registrations (e.g., MapGet, MapPost) when chained with calls like .AddEndpointFilter or .ValidateParameters. The method now traverses member access and invocation chains to reliably extract the handler argument, improving support for various endpoint registration patterns. The original fallback tree-walking logic is still retained.

Summary & Motivation

A brief description of the changes in this pull request explaining why these changes are necessary. Please delete this paragraph.

Checklist

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

Enhanced FindEndpointRegistration to better locate original endpoint registrations (e.g., MapGet, MapPost) when chained with calls like .AddEndpointFilter or .ValidateParameters. The method now traverses member access and invocation chains to reliably extract the handler argument, improving support for various endpoint registration patterns. The original fallback tree-walking logic is still retained.
@cloudfy cloudfy self-assigned this Feb 25, 2026
@cloudfy cloudfy linked an issue Feb 25, 2026 that may be closed by this pull request
@cloudfy cloudfy merged commit 9fe0936 into main Feb 25, 2026
3 checks passed
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.

[Arcturus.Extensions.Validation.AspNetCore] not generting code

1 participant