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 DidYouMean to validation error messages #4966

Merged
merged 8 commits into from
Oct 31, 2024
Merged

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented May 21, 2024

This adds (Did you mean ...) prompts to validation errors. You can disable it in your schema with:

class MySchema < GraphQL::Schema 
  did_you_mean(nil)
end 

TODO:

  • Add a test with multiple suggestions

Fixes #4918

@rmosolgo rmosolgo added this to the 2.3.5 milestone May 21, 2024
@rmosolgo rmosolgo modified the milestones: 2.3.5, 2.4.0 May 22, 2024
@rmosolgo rmosolgo merged commit 7f606ce into master Oct 31, 2024
14 of 15 checks passed
@rmosolgo rmosolgo deleted the did-you-mean-support branch October 31, 2024 17:59
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.

CamelCase vs snake_case (again)
1 participant