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

list_users is not recognized in store.fga.yaml files #295

Open
aaguiarz opened this issue Sep 8, 2024 · 6 comments
Open

list_users is not recognized in store.fga.yaml files #295

aaguiarz opened this issue Sep 8, 2024 · 6 comments

Comments

@aaguiarz
Copy link
Member

aaguiarz commented Sep 8, 2024

When writing tests for list_users in the .fga.yaml file, the list_users key is not recognized in Visual Studio Code:

image
@ewanharris
Copy link
Member

@aaguiarz do you have an older extension installed manually by chance? We added support in #232 and it appears functional for me in this store file

image

@aaguiarz
Copy link
Member Author

aaguiarz commented Sep 9, 2024

I'm using v0.2.22, seems to be the latest one

image

@aaguiarz
Copy link
Member Author

aaguiarz commented Sep 9, 2024

I see the error in that file too:

image

@ewanharris
Copy link
Member

@aaguiarz I'm not really sure what would be the difference here as the extensions should functionally be the same. We just shipped 0.2.23 so could you try updating to that and see if the issue persists

@Siddhant-K-code
Copy link
Contributor

@ewanharris, I think, it got broke in #270 while migrating to @openfga/syntax-transformer. Because, in #270, we removed the schema file which also has ListUsersRequest which was introduced in #232, but can't find similar Lines of Code for list_users in the syntax-transformer package and neither in this file.

@ewanharris
Copy link
Member

@Siddhant-K-code The store validation was moved across to language in openfga/language/pull/286, and for JS is in validate-store.ts which provides the validator.YamlStoreValidator() we now use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants