-
Notifications
You must be signed in to change notification settings - Fork 3
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
Create JSON schema for hub tasks.json #1
Comments
Results of experimentation of validating
|
Have updated my notebook with some code and output of my experimentations: https://annakrystalli.me/hub-infrastructure-experiments/json-schema/jsonvalidate.html Note all was run in this repo and branch: https://github.com/annakrystalli/hub-infrastructure-experiments/tree/json-schema-refs |
It seems like the second approach, resolving refs in R and converting back to json, is probably the way to go. The drawbacks you noted for the other ones (not actually validating the contents of referenced objects, introducing dependencies on other languages like Python, and then having the whole problem over again if we do want to support yaml) are pretty severe. Your suggestion about adding a feature to
The other request for |
Nice idea about just removing Re the validation of yaml, to use the |
FYI, I've opened a couple of issues in |
Been looking at workarounds for outstanding issues with |
The purpose of the schema is two-fold:
PROs
CONs (within the hubUtils) context
jsonvalidate
which can be used to perform validations depends on package V8 and underlying V8 javascript and webassembly engine. Since 2020, it's much easier to installV8
(work out of the box withinstall.packages("V8")
on maOS & Windows) it does need separate installation of the V8 C++ engine on Linux. This used to be problematic on systems e.g. without sudo rights but an alternative option to automatically download a static build of libv8 during package installation is now available.Initial resources
jsonvalidate
R packageThe text was updated successfully, but these errors were encountered: