Open annakrystalli opened 2 years ago
Hi @annakrystalli - just a note to say we've not missed this or #65, and will get back to you on them when we have time to work it through. This is typically a fairly busy time of year for us. Hopefully will update you before the end of the year. If you had implementation ideas for either of course we'd be happy to discuss or review a PR
Thanks @richfitz ! No worries at all.
Hello!
We're developing a framework for setting up forecasting hubs, using json configuration files to specify the config for them and are trying to use
jsonvalidate
to validate config files against schema.An issue we are having is that the json config files themselves contain references to elements in a
$defs
section and need to be resolved prior to validation, both because they throw validation errors (see below) but also to ensure the definitions have been correctly specified according to the schema.At the minute, because we have not found any such functionality in R, we are getting around this in a somewhat hacky way (reading the json config files into R, resolving pointers with a custom function and then reserialising to JSON in order to perform validation with
jsonvalidate::json_validate()
which we are having a few issues with also (see issue #65 ))We were wondering if it would be possible to also resolve pointers in the json being validated as well as the schema? I appreciate this might be deemed outside the scope of the package and I'm not sure how much work it would be to implement but given it is an important step prior to validation perhaps it could be considered within scope?
Reproducible example
Created on 2022-11-21 with reprex v2.0.2