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

fix: Use the ILambdaSerializer to serialize the response body when returning an IHttpResult and generate documentation comments for public members #1748

Merged
merged 2 commits into from
May 15, 2024

Conversation

96malhar
Copy link
Contributor

Issue #, if available:

Description of changes:

  • chore: Generate documentation comments for public memebers and add the <auto-generated/> hint to the generated files so that they are automatically skipped by the analyzers.
  • fix: Use the ILambdaSerializer to serialize the response body when returning an IHttpResult
    • BREAKING CHANGE: Removed the JsonContext property in the HttpResultSerializationOptions class and replaced it with an ILambdaSerializer

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

@96malhar 96malhar requested review from normj and ashovlin May 13, 2024 06:33
Comment on lines -25 to -26
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest))]
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyResponse))]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the lambda function returns an IHttpResult, it does not need to serialize these types.

Copy link
Member

@normj normj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also add the version bump as well to the PR but the changes look good.

…turning an IHttpResult

BREAKING CHANGE: Removed the JsonContext property in the HttpResultSerializationOptions class and replaced it with an ILambdaSerializer
@96malhar 96malhar force-pushed the kmalhar/annotations-updates branch from 875b874 to d5211a3 Compare May 15, 2024 01:11
@96malhar 96malhar merged commit f246c92 into dev May 15, 2024
6 checks passed
@96malhar 96malhar deleted the kmalhar/annotations-updates branch September 18, 2024 20:57
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