Fork me on GitHub
#ring-swagger
<
2017-09-29
>
sammikko06:09:35

if I have a simple flat schema, is there easy way to get just the schema keys (keywords) as sequence/collection, even the optional ones defined like (s/optional :key) ?

sammikko07:09:15

this seems to work (map (fn [[k _]] (s/explicit-schema-key k)) schema)

mtkp21:09:21

nice. not sure what explicit-schema-key does exactly but since the schema is just a map, you can (map explicit-schema-key (keys my-schema))