Skip to content

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

Open
@viggo-mathem

Description

@viggo-mathem

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions