binding-form spec parses symbol-only maps incorrectly

Description

The :clojure.core.specs/binding-form spec incorrectly treats some maps as sequential bindings.

Actual:

Expected:

Cause:

When there is no :keys, :strs, or :syms from :clojure.core.specs/map-special-binding, then :clojure.core.specs/seq-binding-form treats a map as sequential.

Proposed fix:

Include an (s/and vector? ...) check. See patch.

Patch: CLJ-2055-01.patch
Screened by: Alex Miller

Environment

1.9.0-alpha14

Completed

Assignee

Unassigned

Reporter

Brandon Bloom

Labels

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Major
Configure