Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Restrict extra-keys schema in the map spec #415

Merged
merged 1 commit into from
Jun 13, 2019

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wildcard keys can override specific keys
1 participant