We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(s/def ::foo string?) (s/def ::bar string?) (s/def ::qix (s/keys :req-un [::foo])) (s/def ::qux (s/keys :req-un [::bar])) (spec-tools/merge ::qix ::qux) ;; works as expected (def qix ::qix) (spec-tools/merge qix ::qux) ;; broken
By changing spec-tools.impl/resolve-form to
spec-tools.impl/resolve-form
(defn resolve-form [env pred] (let [cljs? (in-cljs? env) res (if cljs? (partial cljs-resolve env) clojure.core/resolve)] (->> pred (walk/postwalk (fn [x] (if (symbol? x) (let [v (eval x)] (if (s/get-spec (eval x)) (eval x) (->> x res ->sym))) x))) (unfn cljs?)))))
it seems to work, but, this seems rather ugly to me, so I'd rather not submit a PR with this as a patch.
The text was updated successfully, but these errors were encountered:
Fixed in 0.10.2.
Sorry, something went wrong.
No branches or pull requests
By changing
spec-tools.impl/resolve-form
toit seems to work, but, this seems rather ugly to me, so I'd rather not submit a PR with this as a patch.
The text was updated successfully, but these errors were encountered: