Re: clojure.spec question

2016-09-24 Thread Alex Miller
#{{"id" 1 "name" "john"}} is a valid spec for that On Saturday, September 24, 2016 at 9:46:55 AM UTC-5, Philos Kim wrote: > > How can I define the following spec? > > {"id" 1 "name" "john"} > > 1) The keys of a map must be the string type, not the keyword type. > > 2) The values must be fixed. Nam

clojure.spec question

2016-09-24 Thread Philos Kim
How can I define the following spec? {"id" 1 "name" "john"} 1) The keys of a map must be the string type, not the keyword type. 2) The values must be fixed. Namely, the value of the key "id" must be 1 and the value of the key "name" must be "john" -- You received this message because you