This function calls jsonvalidate::json_validate()
directly, with the
parameters necessary to retrieve the error information of an invalid JSON
file per the Dataset JSON schema.
Examples
if (FALSE) {
validate_dataset_json('path/to/file.json')
validate_dataset_json('https://www.somesite.com/file.json')
}
ds_json <- dataset_json(iris, "IG.IRIS", "IRIS", "Iris", iris_items)
js <- write_dataset_json(ds_json)
validate_dataset_json(js)
#> File is valid per the Dataset JSON v1.0.0 schema
#> [1] instancePath schemaPath keyword params message
#> [6] schema parentSchema dataPath
#> <0 rows> (or 0-length row.names)