-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: change transformModFileToJSON to return line and column information #177
feat: change transformModFileToJSON to return line and column information #177
Conversation
Source mapping is great: https://github.com/openfga/language/assets/1425457/52935de6-3c3f-46bf-b93e-882dc67205e7 Just questioning who should own validation of whether a file name is valid to avoid whack-a-mole. |
I think the frontend (so VS Code/CLI should always be the one validating the files, as reading the files in a uniform way is outside the scope of language), e.g. reading the files on web vs native vs code |
@rhamzeh I think @d-jeffery was referring to the validation the language does currently here where it ensure that it ends with Myself and Daniel had discussed potentially moving the |
Yes, this is what I was referencing. |
From a quick talk with @rhamzeh
|
Description
Changes the return type of the
transformModFileToJSON
to a structure that allows us to return line and column information as part of the data to allow us to improve error reporting without tying us to the underlying yaml parser that we use on each platform.Currently only has the JS implementation and will follow up with the Go implementation.
References
Resolves #173
Review Checklist
main