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

Fixed issue with ASP.NET Core Minimal API MapPost with complex types #1115

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

normj
Copy link
Member

@normj normj commented Mar 12, 2022

Issue #, if available:
aws/aws-toolkit-visual-studio#223

Description of changes:
This PR fixes an issue when using ASP.NET Core Minimal API and doing a post with a complex types. .NET 6 added a new feature collection called IHttpRequestBodyDetectionFeature to detect whether a response has a body. This was added to allow ASP.NET Core be able to tell the difference between not having a body versus explicitly passing an empty body.

The fix was all in the InvokeFeatures class. The rest of the PR is adding a test framework for writing unit tests for Lambda ASP.NET Core Minimal API projects.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…coming from the body by implement .NET 6 IHttpRequestBodyDetectionFeature interface
@normj normj force-pushed the normj/fix-minimalapi-post branch from 3624b2f to 9778c83 Compare March 14, 2022 05:52
@normj normj merged commit 54f36e4 into dev Mar 14, 2022
@normj normj deleted the normj/fix-minimalapi-post branch May 3, 2023 21:00
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.

3 participants