Validate a measurements.json against the package's JSON schema
Source: R/catalog_measurements.R
validate_measurements_catalog.RdThe schema is inst/schema/measurements.schema.json (draft-07). Uses
jsonvalidate when installed; otherwise a structural check of the
required top-level and per-measurement keys, which is what the tests can
always run.
Usage
validate_measurements_catalog(
x,
schema = system.file("schema", "measurements.schema.json", package = "calcofi4db"),
verbose = TRUE
)