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
alexmiller 2019-12-11T00:44:47.165300Z

I think the select linkage is not fully implemented yet, long story, wip

šŸ‘ 1
bbrinck 2019-12-11T02:56:41.166600Z

Slightly off-topic, but I have a question about what people would prefer in their error messages. Iā€™d appreciate a vote if you have a minute https://twitter.com/bbrinck/status/1204595098207444993

šŸ‘Œ 2
kenny 2019-12-11T22:43:00.168400Z

Does anyone have a keys spec but for a map with string keys?

seancorfield 2019-12-11T23:00:00.169600Z

@kenny Not sure how you'd do that -- s/keys requires keywords I believe? You could use s/map-of for string keys (and add some custom predicates depending on how much checking you need)...

kenny 2019-12-11T23:00:35.170200Z

Yeah that's what I have. Was hoping someone had written something already that did that & generated valid values.

alexmiller 2019-12-11T23:17:13.170400Z

not that I'm aware of

alexmiller 2019-12-11T23:17:39.170900Z

you can get some of what you want by combining s/and and an s/conformer that keywordizes keys

alexmiller 2019-12-11T23:18:13.171400Z

not sure it works on all the api operations the way you want though