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!)
@cbowdon https://github.com/akovantsev/json-schema-to-clojure-spec However it is pretty raw. Try it out!
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.
there is also spec-tools https://github.com/metosin/spec-tools/blob/master/docs/04_json_schema.md
Exactly what I wanted, thank you!