validation suggestions#12
Merged
JoviDeCroock merged 2 commits intoJoviDeCroock:fragment-arguments-validation-2024from Aug 28, 2024
Merged
validation suggestions#12JoviDeCroock merged 2 commits intoJoviDeCroock:fragment-arguments-validation-2024from
JoviDeCroock merged 2 commits intoJoviDeCroock:fragment-arguments-validation-2024from
Conversation
|
Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
JoviDeCroock
approved these changes
Aug 28, 2024
Owner
JoviDeCroock
left a comment
There was a problem hiding this comment.
I will make the spec adjustments over the weekend, I hope
Owner
There was a problem hiding this comment.
This would need reflecting in the spec but sounds good to me
Owner
There was a problem hiding this comment.
This would need reflecting in the spec but sounds good to me
Owner
There was a problem hiding this comment.
Would need to expand the spec
only used in one rule, does not need to be on context
Collaborator
Author
|
I removed the OperationSignature bit, wasn't adding much, reduces diff. |
a53a26a
into
JoviDeCroock:fragment-arguments-validation-2024
JoviDeCroock
pushed a commit
that referenced
this pull request
Aug 29, 2024
* validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context
JoviDeCroock
pushed a commit
that referenced
this pull request
Aug 29, 2024
* validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context
JoviDeCroock
pushed a commit
that referenced
this pull request
Aug 30, 2024
* validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context remove dependency on getVariableSignature move FRAGMENT_ARGUMENT below ARGUMENT fragment arguments do not have location defaults only variable defaults => so getDefaultValue(), which returns location defaults for use with the allowedVariableUsage helper, should never be called by getVariableUsages with respect to fragment arguments fragment arguments therefore need not add anything to the default value stack reduce diff from main these diffs crept in before Kind.FRAGMENT_ARGUMENT was separated out
JoviDeCroock
pushed a commit
that referenced
this pull request
Aug 30, 2024
* validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context remove dependency on getVariableSignature move FRAGMENT_ARGUMENT below ARGUMENT fragment arguments do not have location defaults only variable defaults => so getDefaultValue(), which returns location defaults for use with the allowedVariableUsage helper, should never be called by getVariableUsages with respect to fragment arguments fragment arguments therefore need not add anything to the default value stack reduce diff from main these diffs crept in before Kind.FRAGMENT_ARGUMENT was separated out
JoviDeCroock
pushed a commit
that referenced
this pull request
Aug 30, 2024
* validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context remove dependency on getVariableSignature move FRAGMENT_ARGUMENT below ARGUMENT fragment arguments do not have location defaults only variable defaults => so getDefaultValue(), which returns location defaults for use with the allowedVariableUsage helper, should never be called by getVariableUsages with respect to fragment arguments fragment arguments therefore need not add anything to the default value stack reduce diff from main these diffs crept in before Kind.FRAGMENT_ARGUMENT was separated out
JoviDeCroock
added a commit
that referenced
this pull request
Aug 30, 2024
* Fragment args validation * add experimental substitution * validation suggestions (#12) * validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context remove dependency on getVariableSignature move FRAGMENT_ARGUMENT below ARGUMENT fragment arguments do not have location defaults only variable defaults => so getDefaultValue(), which returns location defaults for use with the allowedVariableUsage helper, should never be called by getVariableUsages with respect to fragment arguments fragment arguments therefore need not add anything to the default value stack reduce diff from main these diffs crept in before Kind.FRAGMENT_ARGUMENT was separated out --------- Co-authored-by: Yaacov Rydzinski <yaacovCR@gmail.com>
JoviDeCroock
added a commit
that referenced
this pull request
Sep 4, 2024
* Add typeinfo functionality as a run-up to supporting the new validation rules Co-authored-by: mjmahone <mahoney.mattj@gmail.com> * Fragment arguments validation (#5) * Fragment args validation * add experimental substitution * validation suggestions (#12) * validation suggestions * remove OperationSignature from ValidationContext only used in one rule, does not need to be on context remove dependency on getVariableSignature move FRAGMENT_ARGUMENT below ARGUMENT fragment arguments do not have location defaults only variable defaults => so getDefaultValue(), which returns location defaults for use with the allowedVariableUsage helper, should never be called by getVariableUsages with respect to fragment arguments fragment arguments therefore need not add anything to the default value stack reduce diff from main these diffs crept in before Kind.FRAGMENT_ARGUMENT was separated out --------- Co-authored-by: Yaacov Rydzinski <yaacovCR@gmail.com> * OverlappingFieldsCanBeMergedRule suggestions (#15) --------- Co-authored-by: mjmahone <mahoney.mattj@gmail.com> Co-authored-by: Yaacov Rydzinski <yaacovCR@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
Brings OperationSignatures into the ValidationContext; this could be perhaps used more?