playground icon indicating copy to clipboard operation
playground copied to clipboard

Add support for schemaFile

Open h3adache opened this issue 11 months ago • 2 comments

schemaFile was added to zed in authzed/zed#455 and spicedb in authzed/spicedb#2206.

But importing a zed yaml with it doesn't work.

Image

It would be nice to be able to support this new syntax.

h3adache avatar Jan 28 '25 17:01 h3adache

How would that work? The import functionality is an uploaded file, which isn't going to have enough context to pull in a separate file.

tstirrat15 avatar Jan 29 '25 21:01 tstirrat15

Yeah, that is tricky. Maybe the ability to upload schemas and validation files separately if necessary? Like, if a validation file includes the schemaFile directive, the user is prompted a second time to upload the associated schema file?

Sounds/feels clunky though. But it'd be great to have this feature as I think having the schema separated from different validation files with specific purposes is super useful. Hopefully you folks can figure out a decent UX for getting this to work with the playground.

noseworthy avatar Jul 15 '25 13:07 noseworthy