You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, I'll have to dig into this. I'd rather not implement unused collection functions on Failure just in case someone tries to treat it this way, but I guess if the alternative is that it crashes for this reasonable use case I have no choice.
In the meantime, does this work if you do (s/or :fail ::fs/failure :ok (s/coll-of string?)) instead?
examples use defn-spec from orchestra
This works:
This does not work --looks like the invocation of 'empty' on Failure record from the clojure.spec code is the problem:
Unhandled java.lang.UnsupportedOperationException
Can't create empty: failjure.core.Failure
The text was updated successfully, but these errors were encountered: