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
I'd expect st/explain to reply Success!, but it fails instead:
st/explain
Success!
(require '[clojure.spec.alpha :as s] '[spec-tools.core :as st] '[spec-tools.data-spec :as ds]) (s/def ::bar (ds/spec {:name ::bar, :spec {:foo int?}})) (st/explain ::bar {:foo 123} st/fail-on-extra-keys-transformer) ;; => {:foo 123} - failed: (keys :req-un [:user$bar/foo]) spec: :user/bar
It fails with non-data specs as well:
(s/def ::quux (st/spec (s/keys :req-un [::foo]))) (st/explain ::quux {:foo 123} st/fail-on-extra-keys-transformer) ;; => {:foo 123} - failed: (keys :req-un [:user/foo]) spec: :user/quux
The text was updated successfully, but these errors were encountered:
Make fail-on-extra-keys-transformer work
5117c0f
Fixes metosin#151.
Probably broken since 0.8.0 where :keys was renamed to ::parse/keys.
:keys
::parse/keys
Sorry, something went wrong.
No branches or pull requests
I'd expect
st/explain
to replySuccess!
, but it fails instead:It fails with non-data specs as well:
The text was updated successfully, but these errors were encountered: