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

Improve autocomplete + error messages for comparator expressions #1213

Open
ssalbdivad opened this issue Nov 26, 2024 · 0 comments
Open

Improve autocomplete + error messages for comparator expressions #1213

ssalbdivad opened this issue Nov 26, 2024 · 0 comments
Labels
external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex)

Comments

@ssalbdivad
Copy link
Member

Parsing > as a finalizer interfered a bit with the error messages you get for expressions like this:

const bounded = type({
  positive: "number >=",
  foo: "Date >",
  bar: "string.email <",
});

This issue should resolve the following:

  • > should not be treated as a finalizer in an expression like this
  • Suggestions for comparators like >= should not include keywords since they must be followed by a literal
@github-project-automation github-project-automation bot moved this to To do in arktypeio Nov 26, 2024
@ssalbdivad ssalbdivad moved this from To do to Backlog in arktypeio Dec 1, 2024
@ssalbdivad ssalbdivad added the external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex) label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex)
Projects
Status: Backlog
Development

No branches or pull requests

1 participant