Where do I file Spec2 bug reports?
(let [charset #{\a \b \c}] (s/+ charset))
throws :
Execution error (IllegalArgumentException) at clojure.alpha.spec/resolve-spec (spec.clj:219).
Symbolic spec must be fully-qualified: charset
However moving the set to a separate namespace or passing it in directly works, e.g.: (s/+ #{\a \b \c})
.This is expected behavior - there are some changes due to symbolic specs
https://github.com/clojure/spec-alpha2/wiki/Differences-from-spec.alpha#symbolic-specs
How to have a generator that generates a constant string?
assuming you're talking spec 1, you can pull a generator from a set of one thing
(gen/sample (s/gen #{"a string"}))
thanks. Yeah, I was told not to use spec2 in production by someone