clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
Gustavo Goretkin 2020-03-09T18:55:15.117600Z

Hi. Total beginner here. I've seen mention of this global registry of specs. Where can I see which specs are defined there? Also, are there any writings about spec and other format-specific Schema definitions (like XML Schema (.xsd) or JSON schema things)?

kszabo 2020-03-10T11:54:39.118900Z

https://github.com/edn-query-language/eql/blob/master/src/edn_query_language/core.cljc is like 50% specs, 50% code

Gustavo Goretkin 2020-03-10T20:35:51.127200Z

Thanks for the pointers. I was expecting more packages like this, I think, to capture "ontologies", the same way there are schemas for e.g. geometry data, like https://github.com/mapbox/geobuf , http://wiki.ros.org/geometry_msgs Is that kind of the spirit of spec at all?

favila 2020-03-09T18:59:09.117900Z

it’s global--to your process, not the world

Gustavo Goretkin 2020-03-09T19:00:52.118100Z

I see. Thanks! I think I misinterpreted. Are there clojure libraries/packages that primarily define specs?

favila 2020-03-09T19:05:54.118300Z

I only know of https://github.com/cognitect-labs/anomalies Sometimes a library will include specs for its api or extension points. I’m not aware of any library that just shares spec objects the way one would share utility functions