-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adds Input Field Default Mismatch Rule #46
base: main
Are you sure you want to change the base?
Conversation
|
||
**Error Code** | ||
|
||
`Input_Field_Default_Mismatch` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Input_Field_Default_Mismatch` | |
`INPUT_FIELD_DEFAULT_MISMATCH` |
- For each {inputFields} in {inputFieldsByName}: | ||
- Let {defaultValues} be a set containing the default values of each input | ||
field in {inputFields}. | ||
- If the size of {defaultValues} is greater than |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greater than what? 🙂
|
||
Input fields in different source schemas that have the same name are required to have | ||
consistent default values. This ensures that there is no ambiguity or | ||
inconsistency when merging schemas from different source schemas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inconsistency when merging schemas from different source schemas. | |
inconsistency when merging input fields from different source schemas. |
input Filter { | ||
field1: Enum1 = Value1 | ||
} | ||
|
||
enum Enum1 { | ||
Value1 | ||
Value2 | ||
} | ||
|
||
input Filter { | ||
field1: Enum1 = Value1 | ||
} | ||
|
||
enum Enum1 { | ||
Value1 | ||
Value2 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input Filter { | |
field1: Enum1 = Value1 | |
} | |
enum Enum1 { | |
Value1 | |
Value2 | |
} | |
input Filter { | |
field1: Enum1 = Value1 | |
} | |
enum Enum1 { | |
Value1 | |
Value2 | |
} | |
input Filter { | |
field1: Enum1 = VALUE1 | |
} | |
enum Enum1 { | |
VALUE1 | |
VALUE2 | |
} | |
input Filter { | |
field1: Enum1 = VALUE1 | |
} | |
enum Enum1 { | |
VALUE1 | |
VALUE2 | |
} |
No description provided.