Lambda annotations: able to use your own JsonSerializerOptions when parsing request and generating response
- Lingua principale
- C#
- Stelle
- 1.7k
- Fork
- 503
- Merge medio
- 1g 18h
- PR unite (30g)
- 21
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Iniziate leggendo il flusso di analisi delle requests di Lambda Annotations e gli entry point per la generazione delle responses di HttpResults descritti nell’issue, quindi esaminate come viene attualmente esposta la configurazione di Startup. Il lavoro è completato quando JsonSerializerOptions personalizzate possono controllare sia l’analisi delle requests sia le responses generate, e sono definiti l’ambito della configurazione e il meccanismo di injection.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, csharp
- Ambito
- api, cloud
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100