generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Serializationarea/loggingCore logging utilityCore logging utilityfeature-requestNew or enhancements to existing featuresNew or enhancements to existing features
Description
Use case
If the object being logged has a DateOnly property the Logging framework throws an exception.
Serialization and deserialization of 'System.DateOnly' instances are not supported. The unsupported member type is located on type 'System.Nullable``1[System.DateOnly]'
Solution/User Experience
Ideally, the Logging framework would handle DateOnly fields without any additional or custom logic from application developers.
Alternative solutions
At the moment, the workaround is to add a [JsonConverter(typeof(DateOnlyJsonConverter))] attribute to each property of the object being serialized, where DateOnlyConverter is a custom converter that is each of our applications.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (.NET) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and TypeScript
Metadata
Metadata
Assignees
Labels
Serializationarea/loggingCore logging utilityCore logging utilityfeature-requestNew or enhancements to existing featuresNew or enhancements to existing features
Type
Projects
Status
👀 In review