plumatic / schema

Clojure(Script) library for declarative data description and validation
Other
2.4k stars 256 forks source link

Restrict extra-keys schema in the map spec #415

Closed gfredericks closed 5 years ago

gfredericks commented 5 years ago

This will fix issue #16 in schema-generators, by wrapping any extra-keys schema in maps in a s/conditional that asserts that none of the extra keys can be equal to any explicit key in the map.

This arguably reflects the real meaning of the extra-key entries, and in any case solves the schema-generators problem (when generated extra keys collide with explicit keys) and doesn't seem to cause any problems.

gfredericks commented 5 years ago

This was already discussed here, so I will just merge this when the build passes.