ring-swagger & compojure-api
mgrbyte 2017-12-18T14:10:07.000218Z

If I have a spec that defines a user with some roles, which is a set, .e.g: (s/def ::availble-roles #{:admin :view :edit}), and user post JSON data that's supposed to contain e.g new users: {"new": [{"emai": "<mailto:blah@blah.com|blah@blah.com>", "roles": ["admin"]}]} - wondering how's best to go about doing this w/compojure-api + spec. Two sets of specs, one for the expected JSON payload (defining roles as a vector of strings) and another for the application (what I want in the application - a set of keywords)?