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

Unused variable {type} in ValidateInputFieldDefaultValues #70

Open
glen-84 opened this issue Dec 16, 2024 · 0 comments · May be fixed by #71
Open

Unused variable {type} in ValidateInputFieldDefaultValues #70

glen-84 opened this issue Dec 16, 2024 · 0 comments · May be fixed by #71

Comments

@glen-84
Copy link
Contributor

glen-84 commented Dec 16, 2024

ValidateInputFieldDefaultValues():

  • Let {inputFields} be all input fields across all source schemas
  • For each {inputField} in {inputFields}:
    • Let {type} be the type of {inputField}
    • If {IsExposed(inputField)} is true and {inputField} has a default value:
      • Let {defaultValue} be the default value of {inputField}
      • If {ValidateDefaultValue(defaultValue)} is false
        • return false
  • return true

{type} is unused.

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 a pull request may close this issue.

1 participant