Fork me on GitHub
#clojure-spec
<
2019-08-24
>
tyler20:08:43

Are unqualified keywords not supported for closed specs? Closed specs seem to work as expected with namespaced keyword specs but the unqualified keyword form doesn’t seem to work with closed.

johanatan20:08:40

are you referring to s/keys req-un or opt-un specifically? are there other aspects of specs that support "unqualified" ?

tyler20:08:04

Refering to the examples here https://github.com/clojure/spec-alpha2/wiki/Schema-and-select#literal-schemas the unqualified form doesn’t seem to be recognized by the closed option.

tyler20:08:25

This is using schema, not s/keys

johanatan20:08:11

Ah, specs2 gotcha . Specs1 didn’t support unqualified except via keys

Alex Miller (Clojure team)20:08:51

No, not supported right now

👍 4