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
when said sorted-map contains any entry with a key other than Keyword:
sorted-map
Keyword
(require '[expound.alpha :as expound]) (require '[clojure.spec.alpha :as s]) (s/def ::test number?) (expound/expound ::test {:a 1 :b (into (sorted-map) {:c 2})}) ;; ^^^ keyword! ;; Works! -- Spec failed -------------------- ...
(require '[expound.alpha :as expound]) (require '[clojure.spec.alpha :as s]) (s/def ::test number?) (expound/expound ::test {:a 1 :b (into (sorted-map) {"c" 2})}) ;; ^^^ not keyword! ;; Exception! java.lang.ClassCastException: java.lang.String cannot be cast to clojure.lang.Keyword
Anything other than Keyword seems to trigger it. Seems to work if sorted-map is top-level.
Hope it helps! Thanks
The text was updated successfully, but these errors were encountered:
@hjrnunes Thanks for reporting this! I can reproduce on my side.
Sorry, something went wrong.
@hjrnunes Thanks again for reporting this! This should be fixed in 0.7.2-SNAPSHOT.
No branches or pull requests
when said
sorted-map
contains any entry with a key other thanKeyword
:Anything other than
Keyword
seems to trigger it. Seems to work ifsorted-map
is top-level.Hope it helps!
Thanks
The text was updated successfully, but these errors were encountered: