language
language copied to clipboard
Grammar for the OpenFGA modeling language
## Description Build the weighted graph based on the language graph, providing tuple cycle detection, model cycle detection, and type mismatch detection ## References ## Review Checklist - [ ]...
Bumps the dependencies group in /pkg/go with 1 update: google.golang.org/protobuf. Updates `google.golang.org/protobuf` from 1.34.2 to 1.35.1 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as...
The `frontend-utils` package currently imports all errors via the `dist` folder. We don't really want that as we shouldn't encourage importing through dist. Instead make this exported fully and also...
Depends on #99
Add test where `a from b` is directly assigned but contains `user:*` or `user#relation` errors out
> Add a test that ensures that if b in the case of a from b is directly assigned but contains user:* or user#relation that we error out too. e.g....
## Description This is the scaffolding code required to compute weights for each node and edge. It's not meant to support every kind of model - more followup PRs will...
## Description If the graph's loop only consists of RewriteEdge or ComputedEdge, classified them as compile time loop instead of runtime loop. This means the following type of model ```...
## Description Update node detection to return list of nodes that have loop. This allows caller to return the proper error message. ## References ## Review Checklist - [ ]...
Go through: - https://github.com/openfga/api/blob/c96ec773cae9caf2a9536856bf1fa206a42ef7ef/openfga/v1/openfga.proto#L92 - https://github.com/openfga/api/blob/c96ec773cae9caf2a9536856bf1fa206a42ef7ef/openfga/v1/authzmodel.proto#L137 - https://github.com/openfga/language/blob/main/pkg/go/validation/validation-rules.go#L13 > And make sure the validation is consistent for all three? Let's make it {1,50}
## Description This is a POC. Result: