Fork me on GitHub
#clojure-spec
<
2020-04-01
>
abdullahibra15:04:38

is there a way to convert json schema into clojure spec in dynamic way ?

abdullahibra15:04:48

what i mean by dynamic here is: i read json schema files and convert them into equivalent clojure spec which could be used

dominicm20:04:21

I would make a single spec per schema which was a predicate which validated the data using the schema?

Eddie15:04:04

Depending the exact specs you need, you might be able to write a utility using spec-tools to do accomplish your goal. For examples, https://github.com/metosin/spec-tools/blob/master/docs/02_data_specs.md.