-
Notifications
You must be signed in to change notification settings - Fork 17
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
Auto-format schemas on pull requests #321
Conversation
@@ -5,6 +5,7 @@ on: | |||
push: | |||
paths: | |||
- datasets/*/dataset.json | |||
- datasets/*/*/*.json |
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.
This doesn't solve the issue I raised, but maybe that's more of a thing to address in the validator itself.
The issue being that if a table JSON file changes the valdiation should not be run against the changed table JSON file, but against the dataset it is part of.
In addition, if I read the spec correctly, the table JSON files don't need to be in one directly below the directory that contains dataset.json
, they could in a directories many levels below that. Does the paths
spec allow for datasets/*/**/*.json
(mind the double **
)?
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.
Does the paths spec allow for
datasets/*/**/*.json
(mind the double**
)?
I suppose the workflow should still trigger on push where table-splitted files have been changed. However, in that case the CHANGED_DATASETS
should be cleaned up to remove the table-splitted files, but only point to the dataset.json
that it's part of. Lets see if I can bash this ...
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.
Good addition. 👍
No description provided.