-
Notifications
You must be signed in to change notification settings - Fork 0
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 config.schema.json
#167
Conversation
@AlexAxthelm this is still in draft mode, assuming you may have some suggestions. Also still need to figure out appropriate values for the "$id", "title", and "description" keys... and configure the GH Action appropriately and make sure it works as expected. |
Exciting! I'll take a closer look later! |
@cjyetman Noting a couple of things here from the docs used in the action: First: it doesn't look like we're actually validating against the schema you wrote. From the docs:
So right now it's just doing a check on "is this a valid yaml file", not "does this yaml file match this schema". Second: I don't think we can make a good schema that will cover the inheritance that we're counting on with The Schema should model a fully-defined object, but as we have the files written ( Here's an article about modeling inheritance with JSON schema: https://json-schema.org/blog/posts/modelling-inheritance but the short story is that it isn't as intuitive as I think this absolutely makes sense for us to chase down, but it might involve bigger changes to how we handle/import configs than just doing the check. |
One "workaround" option would be that for each of the configs, we read them in with |
Yeah, I had a feeling this validator action isn't going to work with the inheritance easily. I'm definitely not wedded to it, just thought it would be cool if it worked. |
gonna remove the validator action because I don't think there's any reasonable way of making it work as expected/desired |
config.schema.json
and validator actionconfig.schema.json
Docker build status
History
History JSON`[{"commit_time":"2024-04-30T06:17:54Z","git_sha":"b293b74f996b1c2c433fd086794e77cc92fcd2f5","image":"ghcr.io/rmi-pacta/workflow.data.preparation:pr-167"}]` |
While this was a cool experiment, I don't know if this would ever get used and it has already fallen out of date, which suggests to me this will be more of a maintenance burden than useful, so I'm gonna close it. |
No description provided.