Skip to content
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

Fix AttributeValue marshaling and names in expressions #1590

Merged
merged 3 commits into from Feb 22, 2022

Commits on Feb 17, 2022

  1. Fix AttributeValue marshaling and handling in expressions

    Updates the `attributevalue` and `expression` package's handling of
    AttributeValue marshaling fixing several bugs in the packages.
    
    * Fixes aws#1569 `Inconsistent struct field name marshaled`. Fields will now
      be consistent with the EncoderOptions or DecoderOptions the Go struct
      was used with. Previously the Go struct fields would be cached with
      the first options used for the type. Causes subsequent usages to have
      the wrong field names if the encoding options used different TagKeys.
    
    * Fixes aws#645, aws#411 `Support more than string types for map keys`. Updates
      (un)marshaler to support number, bool, and types that implement
      encoding.Text(Un)Marshaler interfaces.
    
    * Fixes Support for expression Names with literal dots in name. Adds new
      function NameNoDotSplit to expression package. This function allows
      you to provide a literal expression Name containing dots. Also adds a
      new method to NameBuilder, AppendName, for joining multiple name path
      components together. Helpful for joining names with literal dots with
      subsequent object path fields.
    
    * Fixes bug with AttributeValue marshaler struct struct tag usage that
      caused TagKey to be ignored if the member had a struct tag with
      `dynamodbav` struct tag. Now both tags will be read as documented,
      with the TagKey struct tag options taking precedence.
    jasdel committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    eff88d0 View commit details
    Browse the repository at this point in the history
  2. copy to dynamodbstreams

    jasdel committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    5621bd0 View commit details
    Browse the repository at this point in the history
  3. add changelog

    jasdel committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    32b7491 View commit details
    Browse the repository at this point in the history