Clojure

[spec] The result of s/form for s/keys* is different from the original form

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: Release 1.9
  • Fix Version/s: Release 1.10
  • Component/s: None
  • Labels:
  • Approval:
    Vetted

Description

If s/form is applied to s/keys*, it returns a value completely different from the original form:

user=> (s/form (s/keys* :req-un [::x ::y]))
(clojure.spec/& (clojure.spec/* (clojure.spec/cat :clojure.spec/k clojure.core/keyword? :clojure.spec/v clojure.core/any?)) :clojure.spec/kvs->map mspec__14270__auto__)
user=>

Activity

Hide
Alex Miller added a comment -

Thanks for logging - I've been working on an approach for this one but never got around to actually logging it.

Show
Alex Miller added a comment - Thanks for logging - I've been working on an approach for this one but never got around to actually logging it.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: