Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add UniqueInputFieldNames validator #58

Merged
merged 2 commits into from
Feb 17, 2020
Merged

Conversation

jonas-jonas
Copy link
Contributor

This adds the UniqueInputFieldNames validator. It required a few more tweaks to the original JS code, because as far as I can tell, there is no "enter" and "leave" hooks for the visitors (yet?).

I also copied most of the test cases from the JS source to make sure that this implementation is complying with the reference.

@klavs klavs merged commit 3a28453 into gql-dart:master Feb 17, 2020
@klavs
Copy link
Contributor

klavs commented Feb 17, 2020

@jonas-jonas, thank you!

Your observations about our visitor implementation is correct, so it's ok to tweek the implementation.

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.

None yet

2 participants