Skip to content

Commit

Permalink
chore: update syntax transformer and remove invalid test now that we …
Browse files Browse the repository at this point in the history
…have changed error order
  • Loading branch information
ewanharris committed Sep 9, 2024
1 parent 0f21005 commit d78c989
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 34 deletions.
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"author": "OpenFGA",
"dependencies": {
"@openfga/syntax-transformer": "^0.2.0-beta.20"
"@openfga/syntax-transformer": "^0.2.0-beta.21"
},
"devDependencies": {
"@openfga/sdk": "^0.6.3",
Expand Down
25 changes: 0 additions & 25 deletions tests/data/model-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,31 +189,6 @@ type group
},
],
},
{
name: "no entry point for single type single relation",
friendly: `model
schema 1.1
type user
type group
relations
define group: group from group
`,
expectedError: [
{
endColumn: 17,
endLineNumber: 6,
message: "`group` is an impossible relation for `group` (no entrypoint).",
extraInformation: {
relation: "group",
error: "relation-no-entry-point",
},
severity: 8,
source: "ModelValidationError",
startColumn: 12,
startLineNumber: 6,
},
],
},
{
name: "no entry point for single type multiple relations",
friendly: `model
Expand Down

0 comments on commit d78c989

Please sign in to comment.