oliyh / martian

The HTTP abstraction library for Clojure/script, supporting OpenAPI, Swagger, Schema, re-frame and more
MIT License
526 stars 45 forks source link

Extract keywordize-keys on params to interceptors #65

Closed andrewmcveigh closed 5 years ago

andrewmcveigh commented 5 years ago

clojure.walk/keywordize-keys recursively clobbers map-like data structures. This commit pulls out the call to keywordize-keys on the params map into the default-interceptors. It retains the default behaviour, but allows the user to optionally customize the behaviour.

Fix: #62

oliyh commented 5 years ago

Hi @andrewmcveigh thank you for this, I think this is a much neater solution. Cheers

oliyh commented 5 years ago

This is now on Clojars in 0.1.10-SNAPSHOT

andrewmcveigh commented 5 years ago

Awesome, this is working for us now. Thanks!