Skip to content

Getting import errors using schemaFile when using a composable schema. #515

Open
@Icantjuddle

Description

@Icantjuddle

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions