Fork me on GitHub
#clojure-spec
<
2022-11-24
>
Chris08:11:08

Is anyone aware of any projects that convert JSON-schema to specs? An internet search only turns up projects based on Java libs, but it would be preferable to have a spec created. (Most preferable would be to create the schema from a spec, but probably a much harder problem given the relative expressiveness!)

tatut09:11:48

I have some old code (not up to current json schema) https://github.com/tatut/json-schema you can use that as a predicate

tatut09:11:55

but it doesn’t create clojure specs EDIT: nevermind, you wanted schema from specs

Chris10:11:15

I wanted either 🙂 This is neat, thanks for sharing. Might be a good base for a ->spec version if I can’t find an existing implementation.

Chris17:11:57

Exactly what I wanted, thank you!

Chris09:01:31

Looks interesting, thanks!