[spec] 'check' has inconsistent behavior for required and optional map keys

Description

Repro:

Actual: Exception is thrown - "Unable to construct gen at: [:m :ex/f] for: :ex/f"

Expected: A value should be returned containing the failure. This is the behavior that will occur if you replace the ":opt" with a ":req" in the keys spec.

I would expect this value to contain a failure such that:

Environment

org.clojure/spec.alpha "0.1.143"

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Ben Brinckerhoff

Labels

Approval

Triaged

Priority

Minor

Affects versions