Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add new OPA errors docs for more parse error classes #729

Open
1 of 9 tasks
charlieegan3 opened this issue May 21, 2024 · 0 comments
Open
1 of 9 tasks

Add new OPA errors docs for more parse error classes #729

charlieegan3 opened this issue May 21, 2024 · 0 comments

Comments

@charlieegan3
Copy link
Member

Now that we have #728, we link directly to the related error for a given parse error. This makes it more important to have pages for each of these errors at docs.styra.com/opa/errors.

Some more error types that'd nice to document:

  • unexpected import path, must begin with one of: {data, future, input, rego}, got: foo
  • unexpected eof token
  • unexpected eof token: expected rule value term
  • unexpected : token
  • if keyword is required before rule body
  • package expected
  • found empty body not needed as not a thing in OPA v1
  • rule name conflicts with built-in function
  • expected ident
@anderseknert anderseknert moved this to TODO in Regal Jun 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: TODO
Development

No branches or pull requests

1 participant