Skip to content

Commit

Permalink
Rename Serializer, nested to dynamo-nested (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyamo2 authored May 11, 2024
1 parent 59aa5c0 commit b4cd285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ func (n nestedStructSerializer) Value(_ context.Context, _ *schema.Field, _ refl
}

func init() {
schema.RegisterSerializer("nested", nestedStructSerializer{})
schema.RegisterSerializer("dynamo-nested", nestedStructSerializer{})
}
2 changes: 1 addition & 1 deletion tests/helpers_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (t TestTableWithTypedList) TableName() string {
type TestTableWithNested struct {
PK string `gorm:"primaryKey"`
SK int `gorm:"primaryKey"`
SomeMap NestedAttribute `gorm:"serializer:nested"`
SomeMap NestedAttribute `gorm:"serializer:dynamo-nested"`
}

func (t TestTableWithNested) TableName() string {
Expand Down

0 comments on commit b4cd285

Please sign in to comment.