-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add schemaFile to ValidationFile #2206
Conversation
@kartikaysaxena is this all it took for SpiceDB changes? I was worried that a missing |
0f8717b
to
c396d74
Compare
The author has validated that this change works as desired over in authzed/zed#455 |
Added a check if schema and schemaFile aren't specified, also, afaik it panics when schema is not present and we try to compile it in zed, updated the checks there too. |
It looks like there are some lint and validation failures - can you have a look at those? |
6ff96c5
to
bfb81ea
Compare
There's still a test failure. I think it's related to the new parsing you implemented - I was thinking of putting that validation up at the level of zed rather than down here in the parser. I think what you had before with just adding the |
bfb81ea
to
328174a
Compare
Yes now the parser enforces that there must be either schema or schemafile in the file, and so the test expects the same, sure would remove that. |
Yeah, I'm okay with that. We can either drop that validation for now or do it in a different way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sorry, one more thing - can you squash the commits? I usually do it with |
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
d9c38c1
to
a11be4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related authzed/zed#453
Added
schemaFile
to ValidationFile which could be used to specify path of the schema.