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

Block Field Suggestions Plugin Does Not Mask Enum Suggestions #759

Open
sselby opened this issue Feb 3, 2025 · 1 comment
Open

Block Field Suggestions Plugin Does Not Mask Enum Suggestions #759

sselby opened this issue Feb 3, 2025 · 1 comment

Comments

@sselby
Copy link

sselby commented Feb 3, 2025

When a parsing error occurs on an enum an error message with suggestions can be returned. This message will be of a form like:

  • Variable "$category" got invalid value "FFICTION"; Value "FFICTION" does not exist in "Category" enum. Did you mean the enum value "FICTION"?

It can also return more than one suggestion:

  • Variable "$category" got invalid value "FFICTION"; Value "FFICTION" does not exist in "Category" enum. Did you mean the enum value "FICTION" or "NON_FICTION"?

The extra "the enum value" and potential of multiple suggestions is not matched by the current regular expression.

@nullswan
Copy link
Contributor

nullswan commented Feb 6, 2025

cc @QuentinN42 @Gby56

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

No branches or pull requests

2 participants