clojure-spec 2022-11-24

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!)

Looks interesting, thanks!

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

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

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.

Exactly what I wanted, thank you!