hello! Does anyone know of an existing clojure spec
to enforce the markup for Vega
or Vega-lite
(https://vega.github.io/vega-lite/docs/#spec)?
I vaguely remember someone talking about working on that, but I might be confusing with something else.
At the very least though, there is a json schema for the specs, from which you should be able to derive specifications.
thanks, @metasoarous
Sure thing! Please let us know if you come up with anything reusable.
can't commit to it at the moment, but I'd surely share if it got something worthwhile going
probably would require some research, getting lessons learned on how the aws
library does it, etc...
maybe it's better to interop with https://github.com/vega/vega-lite-api (?).... not sure
Well, if you're using from cljs, there's the cljsjs/vega-lite asset you could refer to
oh! do you have that handy?
You can search here: http://cljsjs.github.io/
yeah - I found https://github.com/cljsjs/packages/tree/master/vega-lite but not sure how it helps
I just pushed changes to it last night; not sure if they've been merged yet though
You can just use it like any other clj(s) coord; dep on [cljsjs/vega-lite "3.0.2.-0"]
(most recent, based on search in http://cljsjs.github.io)
I haven't tried accessing the specs from that, but I think you should be able to?