Skip to content

Conversation

@gfredericks
Copy link
Contributor

@gfredericks gfredericks commented Jun 13, 2019

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.

This will fix [issue #16 in schema-generators]
(plumatic/schema-generators#16),
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
Copy link
Contributor Author

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

@gfredericks gfredericks merged commit 08261aa into master Jun 13, 2019
@gfredericks gfredericks deleted the extra-key-restriction branch June 13, 2019 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wildcard keys can override specific keys

2 participants