Skip to content

DynamoDbMapper: support additional/dynamic attributes on declared models #674

Closed
@estebistec

Description

@estebistec

Jackson has a feature whereby with @AnyGetter [1] and @AnySetter annotations a serializable bean can handle JSON properties that aren't accounted for in the modeled properties (while keeping the benefits of the defined model).

Currently, with DynamoDbMapper this is only supported with a fully custom marshaller. However, this means that you've lost the benefit of modeling the known attributes and their constraints. This is true for both table models and for embedded document models. Is it reasonable for DynamoDb to perhaps have a feature like Jackson's, to support documents that could have unknown data attributes (especially helpful for embedded JSON "blobs").

I'm not against working on a pull request when I can make the time, but I wanted to get the suggestion logged now.

Thanks!

[1] http://wiki.fasterxml.com/JacksonFeatureAnyGetter

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions