Open
Description
The new schemaFile
syntax added in #455 is very nice but breaks imports.
zed import studio-entitlements-admin-server/src/main/resources/authzed/schema.zed.yaml
panic: interface conversion: interface {} is *decode.SchemaRelationships, not *validationfile.ValidationFile
goroutine 1 [running]:
github.com/authzed/zed/internal/decode.unmarshalAsYAMLOrSchemaWithFile({0x1400016e000, 0x3b8e, 0x4000}, {0x101b38340, 0x140000a8640}, {0x16f32a0e3, 0x4b})
internal/decode/decoder.go:116 +0x224
github.com/authzed/zed/internal/decode.DecoderForURL.fileDecoder.func2({0x101b38340, 0x140000a8640})
internal/decode/decoder.go:62 +0x9c
github.com/authzed/zed/internal/cmd.importCmdFunc(0x1028c4940, {0x140003c1c50, 0x1, 0x1?})
internal/cmd/import.go:80 +0xa8
github.com/spf13/cobra.(*Command).execute(0x1028c4940, {0x140003c1c20, 0x1, 0x1})
/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x140002da008)
/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034
github.com/authzed/zed/internal/cmd.Run()
internal/cmd/cmd.go:134 +0x7a8
main.main()
cmd/zed/main.go:6 +0x1c
I suppose composable schema support would also fix this but just adding it in case it's something quick to support :)
Metadata
Metadata
Assignees
Labels
No labels