-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SDK dependency from DynamoDBEvent #1648
Conversation
Libraries/src/Amazon.Lambda.DynamoDBEvents/Amazon.Lambda.DynamoDBEvents.csproj
Show resolved
Hide resolved
/// </li> | ||
/// </ul> | ||
/// </summary> | ||
public string StreamViewType { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an enum in the SDK, should we try to reproduce here? Though I suppose a plain .NET enum
isn't as flexible as the generated constant class we use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to use string
to be forward compatible with new enum values and we don't have the ConstantClass
to use here. Which the ConstantClass
cause other fun JSON serialization issues.
Issue #, if available: aws/aws-sdk-net#1116 (and internal issue
DOTNET-4497
)Description of changes: Similar to #1237, this PR removes the
AWSSDK.DynamoDBv2
dependency from theDynamoDBEvent
class (by moving the properties from theAmazon.DynamoDBv2.Model.Record
class).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.