Re: Prismatic Schema: Defining a schema for key-value pairs

2016-01-16 Thread Jason Wolfe
Currently, you would have to define your own schema type to control the error messages: https://github.com/plumatic/schema/wiki/Defining-New-Schema-Types-1.0 If you want to submit an issue, we can look into ways to make this simpler. Thanks! On Saturday, January 16, 2016 at 11:52:20 PM UTC, J

[ANN] vizard 0.1.0

2016-01-16 Thread Soren Macbeth
Hello! Yieldbot is pleased to announce the release of vizard. vizard is a tiny client/server library meant to enable REPL-based data visualization in the browser. The Github repository is available at: https://github.com/yieldbot/vizard For more information see our announcement blog post at:

defmulti with prismatic schema

2016-01-16 Thread JvJ
Hello, I understand that Prismatic Schema has a means of annotating defmethod, but what should I do about defmulti? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Re: Prismatic Schema: Defining a schema for key-value pairs

2016-01-16 Thread JvJ
Do you know if there's a way to identify the particular key that failed in the error message? On Saturday, 16 January 2016 02:01:49 UTC-8, JvJ wrote: > > That is exactly what I am looking for! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

How to save gorilla plots to file

2016-01-16 Thread jandot
Hi all, I have found the gorilla REPL (http://gorilla-repl.org/) very useful for data analysis in clojure. One of the great benefits is that it can display plots in-line (based on vega). When saving such notebook, these plots are represented as base64 text strings in the .clj file. However, I h

Re: Prismatic Schema: Defining a schema for key-value pairs

2016-01-16 Thread JvJ
That is exactly what I am looking for! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscri

Re: Prismatic Schema: Defining a schema for key-value pairs

2016-01-16 Thread Jason Wolfe
Schemas are "path-independent", so you have to do this at the level of the map. The easiest way would be to use s/constrained with a predicate, e.g., user> (def my-map (s/constrained {Class Object} (fn matching-kvs? [m] (every? #(isa? (type (val %)) (key %)) m #'user/my-map user> (s/validat

Re: [ANN] Truss, an assertions lib for Clojure/Script

2016-01-16 Thread Peter Taoussanis
> > Wow, this feels exactly right. I am eager to start using it, and delighted > it will be so easy. > Very happy to hear that James, thanks for saying so :-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Anyone help me to add "clojure-china.org" to "Clojure User Groups" page please?

2016-01-16 Thread Jiyin Yiyong
Thanks. On Wednesday, January 13, 2016 at 12:40:31 PM UTC+8, Alex Miller wrote: > > Added! > > On Tuesday, January 12, 2016 at 9:20:18 PM UTC-6, Jiyin Yiyong wrote: >> >> Forgot to add url http://clojure-china.org/ >> We also got a weibo account http://weibo.com/clojurechina >> >> On Wednesday, Ja

Re: [ANN] Clojure.Java-Time 0.2.0

2016-01-16 Thread platonovadim
Your best bet for a Clj/Cljs compatible library is `clj-time`. I think in the long run `clj-time` will release a version based on Java 8 as more and more libraries in the Java ecosystem will provide integration with the native Date-Time API. Joda-Time will fade into the past. Writing a library