Clojure

[spec] s/keys explain-data :pred problem

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.9
  • Fix Version/s: Release 1.10
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

As reported in CLJ-2175, s/keys has an issue with reporting a valid resolved pred in explain-data:

(require '[clojure.spec.alpha :as s])

(-> (s/explain-data (s/keys :req [::x]) :a) ::s/problems first :pred)
;;=> map?   
;;EXPECTED: clojure.core/map?

Patch: clj-2177.patch

Activity

Hide
Shogo Ohta added a comment -

Missing the patch?

Show
Shogo Ohta added a comment - Missing the patch?
Hide
Alex Miller added a comment -

Applied

Show
Alex Miller added a comment - Applied

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: