-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
Wrapped s/keys
does not properly display unqualified keyword specs
#215
Comments
s/keys
does not properly display unqualified keyword specs
@kelvinqian00 Thanks for the bug report and repro! I'll take a look. |
@kelvinqian00 I'm having a hard time reproing this. I tried the following specs and I can't seem to get the results you showed above. (s/and #(< 0 (count %)) :keys-spec/user)
(s/or :nil nil?
:user :keys-spec/user) I'm likely misunderstanding some detail of your repro. Can you should the spec you used to get the result above? Thanks! |
Ah, sorry for the lack of clarity. When I meant "when you wrap the user spec in an (s/def :keys-spec/user (s/and (s/keys :req [:keys-spec/name]
:req-un [:keys-spec/age])
(constantly true))) will give the desired result. I actually had to move the |
Hi @kelvinqian00! Likely it would be useful to have a bug repro following your new insight, WDYT? Cheers - V |
@kelvinqian00 Thanks for reporting this! This is fixed in 78be800 |
If you use
s/keys
with:req-un
and wrap it as part of a larger spec, expound is unable to determine the spec for the unqualified spec identifier. For example, this example from the tests works fine at first:in which you get
But when you wrap the
user
spec in ans/and
or ans/or
, you get the following:The text was updated successfully, but these errors were encountered: