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