-
Notifications
You must be signed in to change notification settings - Fork 13
Resolves External Argument Default Mismatch
specification doesnt account for all arguments
#102
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,12 +341,12 @@ ERROR | |
- For each {argumentName} in {argumentNames} | ||
- Let {arguments} be the set of all arguments with the name | ||
{argumentName} from all fields in {fields}. | ||
- Let {defaultValue} be the first default value found in {arguments}. | ||
- Let {defaultValues} be the all default values found in {arguments}. | ||
- Let {externalArguments} be the set of all arguments with the name | ||
{argumentName} from all fields in {externalFields}. | ||
- For each {externalArgument} in {externalArguments} | ||
- The default value of {externalArgument} must be equal to | ||
{defaultValue}. | ||
- The default value of {externalArgument} must be equal to all | ||
{defaultValues}. | ||
Comment on lines
+348
to
+349
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assume defaults: Schema A: 1 Wouldn't this compare: 3 with 1 i.e. External defaults shouldn't be included in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this change the outcome of the rule? I more or less try to word the rules as simple as possible. The actualy implementation of the rule would be completely different anyway i believe. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. I'm not sure. Maybe not in this specific case. If there were more than 1 external argument, it would fail if the default values of 2 or more external arguments didn't match? Assume defaults: Schema A: 2 Compares: 2 with 2 (B - A) 3 with 2 (C - A) Also the explanatory text is:
🤷♂️ |
||
|
||
**Explanatory Text** | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.