Makes the line and column numbers for the various errors 0 based, we were mostly 1 based already with the exception of some oversights (Go default error in some modular cases) and the line (but not column) on syntax errors from antlr.
This is separated into different commits for the tests and each language to help with review. There is a little bit of awkwardness in that we don't assert the errors in Go and Java due to differences in the errors across languages, but it shouldn't be an issue.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
Description
Makes the line and column numbers for the various errors 0 based, we were mostly 1 based already with the exception of some oversights (Go default error in some modular cases) and the line (but not column) on syntax errors from antlr.
This is separated into different commits for the tests and each language to help with review. There is a little bit of awkwardness in that we don't assert the errors in Go and Java due to differences in the errors across languages, but it shouldn't be an issue.
References
Review Checklist
main