zed icon indicating copy to clipboard operation
zed copied to clipboard

Getting import errors using `schemaFile` when using a composable schema.

Open Icantjuddle opened this issue 9 months ago • 0 comments

I have the following structure:

/
schema/
  root.zed
  domain.zed
tests/
  test_one.yaml

root.zed

definition user {}


import "./domain.zed"

domain.zed

definition domain {
  relation read : user; 
}

test_one.yaml

schemaFile: ../schema/root.zed

When I run zed validate schema/root.zed it runs fine. When I run zed validate tests/test_one.yaml it complains "parse error in ``, line 9, column 1: failed to read import in schema file"

If I use the preview compiler first, then the tests runs fine.

Is this expected?

Icantjuddle avatar May 15 '25 15:05 Icantjuddle