Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptive Error for Improper Use of [AsParameters] #56114 #58218

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smnsht
Copy link
Contributor

@smnsht smnsht commented Oct 3, 2024

Descriptive Error for Improper Use of [AsParameters]

Description

  1. Throw NotSupportedException if [AsParameters] is applied to an enumerable class.

  2. Preserve existing behavior for collections that are also abstract classes, like IFormCollection. In order to do this, a dedicated unit test was added.

Fixes #56114 (in this specific format)

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 3, 2024
Copy link
Contributor

Thanks for your PR, @smnsht. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@smnsht smnsht marked this pull request as ready for review October 3, 2024 13:00
@smnsht smnsht marked this pull request as draft October 3, 2024 13:29
@smnsht smnsht marked this pull request as ready for review October 3, 2024 14:15
@smnsht
Copy link
Contributor Author

smnsht commented Oct 3, 2024

Converting draft to PR despite some failing tests in Interop.FunctionalTests.

[QuarantinedTest("https://github.com//issues/41074")]
[QuarantinedTest("https://github.com//issues/39985")]

Justification:

Seems like those tests failed with no regard to my changes. Also, tests are failing for the main branch.
Also, I spotted merged PR's with failed tests in this area.

@amcasey
Copy link
Member

amcasey commented Oct 3, 2024

FYI @captainsafia

@gfoidl gfoidl added the area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Descriptive Error for Improper Use of [AsParameters] with IFormFileCollection in .NET 8 Minimal APIs
3 participants