openfga / openfga/vscode-ext

YAML validation error in editor

Open
#356 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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.

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.