Skip to content

Skip concept validation with [AspNetResult]#1788

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-aspnetresult-validation
Draft

Skip concept validation with [AspNetResult]#1788
Copilot wants to merge 3 commits intomainfrom
copilot/fix-aspnetresult-validation

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Summary

Fixed

  • Concept validators now skip execution when [AspNetResult] attribute is present on controller actions

When [AspNetResult] is applied to controller actions, the endpoint returns raw ASP.NET results instead of Arc's wrapped command/query results. Concept validators (ConceptValidator<T>) are Arc-specific and should not run in this mode. Regular validators (BaseValidator, CommandValidator, QueryValidator) continue to execute normally.

Implementation:

  • Added ShouldSkipConceptValidation() to DiscoverableModelValidator that checks action filter descriptors for AspNetResultAttribute
  • When detected, traverses validator inheritance chain to identify ConceptValidator<T> types and returns early without validation
  • Non-concept validators are unaffected by the attribute
Original prompt

This section details on the original issue you should resolve

<issue_title>When using [AspNetResult] we should also not include concept validation</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 17, 2026 13:16
…resent

Co-authored-by: einari <134365+einari@users.noreply.github.com>
…ptValidation

Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix validation inclusion for AspNetResult Skip concept validation with [AspNetResult] Feb 17, 2026
Copilot AI requested a review from einari February 17, 2026 13:24
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.

When using [AspNetResult] we should also not include concept validation

2 participants