Skip to content

Conversation

aboroska
Copy link
Contributor

@aboroska aboroska commented Sep 1, 2025

AWS allows numbers (integer and float) to be used in the primary key, while the current spec restricts it to strings.

To reproduce, the following one liner produces the dialyzer warning:

def hello() do
  ExAws.Dynamo.get_item("table", [{:my_key, 1}])
end

AWS allows numbers (integer and float) to be used in the primary key,
while the current spec restricts it to strings.

To reproduce, the following one liner produces the dialyzer warning:

    def hello() do
      ExAws.Dynamo.get_item("table", [{:my_key, 1}])
    end
@aboroska aboroska force-pushed the fix-typespec-primary-key branch from d80c624 to ed90a48 Compare October 3, 2025 10:32
@aboroska aboroska requested a review from bernardd October 3, 2025 10:33
@bernardd bernardd merged commit 25a5ec6 into ex-aws:main Oct 17, 2025
12 checks passed
@bernardd
Copy link
Contributor

Thanks @aboroska!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants