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

Changing Convention for Giving Explicit Names for a Property. #2

Open
vivekjoshi556 opened this issue Nov 27, 2023 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vivekjoshi556
Copy link
Owner

Current Behavior:
Right now, the Validator checks for whether the last rule is a valid rule or not. If it is it interprets it as a rule otherwise it is considered as a name to be used that while displaying error message. But in some cases (such as typos) the last value might be considered as a name even though it was intended as a rule.

Intended Behavior:
If the last value was intended as a rule but was not a valid rule, then it should throw error. And should be used as a name when intended.

Suggested Solution:
If the user wants the last value to be considered as a name, then maybe prefix it with an underscore (_) or something and then during printing the underscore can be removed.

@vivekjoshi556 vivekjoshi556 added enhancement New feature or request good first issue Good for newcomers and removed enhancement New feature or request good first issue Good for newcomers labels Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant