aws / aws/aws-lambda-dotnet

Lambda annotations: able to use your own JsonSerializerOptions when parsing request and generating response

Open
#1,446 2 comments 0 reactions 0 assignees View on GitHub
feature-request module/lambda-client-lib p2 queued
Dominant language
C#
Stars
1.7k
Forks
503
Avg merge
1d 5h
Merged PRs (30d)
18

Description

### Describe the feature

A way to control what serializing options to use when parsing a request or generating a response using `HttpResults`

### Use Case

1. When parsing a request as of now and you're expecting for example camelCase. You would have to decorate your model props with `JsonPropertyName` that follows camelCase for it to be able to parse. Same when generating a response using `HttpResults` and you want it to return camelCase.

### Proposed Solution

It would be nice to be able to set it in `Startup` for all lambdas. For `HttpResults` it would be enough to be able to inject it in somehow.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS .NET SDK and/or Package version used

Amazon.Lambda.Annotations 0.12.0

### Targeted .NET Platform

.NET 6

### Operating System and version

Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.