taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

Fix ClassCastException when using the :region option #154

Closed joelittlejohn closed 3 years ago

joelittlejohn commented 3 years ago

Closes #152

joelittlejohn commented 3 years ago

Not easy to test this with dynamodb local, however I've done some exploratory testing and this seems to work.

kipz commented 3 years ago

Not complete and uses a private function, but we could add a test for creating the client - this fails without your fix I guess.

Better than nothing?

e.g.

(deftest client-creation
  (#'far/db-client (assoc *client-opts* :region "us-east-1")))