Comment made by: alexmiller
Removed proposal and patch from the ticket as we will not be going this direction. Captured here for reference:
"The attached patch implements a proposed solution to this issue, by adding a :closed?
option to s/keys
and using it for the destructuring spec. If s/keys
is used with :closed?
set to true, conform
will only validate declared specs as opposed to the default behaviour of s/keys
of validating all namespaced keywords with existing specs.
After this patch, the above example runs fine and usages of s/keys
without :closed?
set to true will validate against ::keys
as per current behaviour.
Patch: close-destructuring-keys-specs.diff"