aws / aws/aws-sdk-net

Global registration of type converters

Open
#1,746 7 comments 2 reactions 0 assignees View on GitHub
dynamodb feature-request p2 queued
Dominant language
C#
Stars
140
Forks
891
Avg merge
21h 51m
Merged PRs (30d)
10

Description

I have an `IPropertyConverter` from `NodaTime.ZonedDatetime` to `string`
I can register this either via `DynamoDBPropertyAttribute` or `AWSConfigsDynamoDB.Context.AddMapping` as illustrated [here](https://github.com/aws/aws-sdk-net/issues/648)
This works ok but is repetitive and error prone

Is it possible to globally register a type converter?
e.g (imagined) `AWSConfigsDynamoDB.Context.AddTypeMapping()`

Contributor guide

Open the contributing guide

Research direction

Start by comparing the existing DynamoDBPropertyAttribute and AWSConfigsDynamoDB.Context.AddMapping registration paths, using IPropertyConverter and the example linked in the issue. The change would be complete when a global type-converter registration can apply the converter without repetitive property mappings, with the supported API and behavior documented and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, csharp
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.