[spec] alt with an empty cat breaks explain

Description

(s/conform (s/alt :empty (s/cat)) [42]) ; => ::s/invalid (s/explain (s/alt :empty (s/cat)) [42]) ; => prints 'Success!'

Related:
https://clojure.atlassian.net/browse/CLJ-2360#icft=CLJ-2360 - looks like the same issue, but for s/and, s/or
CLJ-2336 - looks like a consequence of this issue
https://clojure.atlassian.net/browse/CLJ-2304#icft=CLJ-2304 - probably related too

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Approval

Vetted

Priority

Affects versions

Created July 6, 2018 at 7:21 PM
Updated October 2, 2019 at 1:34 PM

Flag notifications