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

Accept keywords for string schemas #105

Closed oliyh closed 3 years ago

oliyh commented 3 years ago

Currently a schema like {:foo s/Str} fails when providing {:foo :bar} because a keyword cannot be coerced to a string.

It should allow coercion by calling name.