YAML validation error in editor
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 7
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 14
Description
We have a test file validating groups and relations.
The test passes with CLI (fga version v0.6.4) but there is an error in the editor that says: "member is not a relation of group". VS Code extension Version 0.2.24.
Group definition
type group relations define member: [user, group#member]
The test:
- user: group:federation_council#member relation: directory_owner object: organization:starfleet
- name: Users that are visible by directory owners of the organization:starfleet realm list_objects: - user: group:federation_council#member # <-- This is where the error is showing!! type: user assertions: can_read_metadata: - user:kirk - user:spock - user:uhura
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the validation error in the VS Code extension using the supplied group definition and test, comparing the editor with CLI fga v0.6.4. Trace how the extension validates the group:federation_council#member entry; done when the editor accepts the YAML consistently with the CLI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100