Skip to content

for a YAML that references a composable schema, zed validate passes but zed import fails #677

Description

@miparnisari
[19:07:58] ~/Documents/GitHub/zed (main) $ ./zed validate ../spicedb-clone/demo/demo.yaml
Success! - 71018 relationships loaded, 0 assertions run, 0 expected relations validated


[19:11:10] ~/Documents/GitHub/zed (main) $ ./zed import ../spicedb-clone/demo/demo.yaml 
7:11PM WRN not calling a released version of SpiceDB version=a81358557206-dirty
7:11PM INF importing schema
7:11PM ERR terminated with errors error="error importing schema: rpc error: code = InvalidArgument desc = parse error in `schema`, line 3, column 1: import statements are not allowed in this context"

The YAML:

---
schemaFile: "./with-import-root.zed"

The zed

use import

import "with-import-common.zed"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething is broken or regressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions