A standalone function to validate a data package descriptor.
validate(descriptor)
descriptor | data package descriptor, one of:
|
---|
A list with:
valid
TRUE
if valid
errors
a list with errors if valid FALSE
validate(descriptor = '{"name": "Invalid Datapackage"}')#> $valid #> [1] FALSE #> #> $errors #> $errors[[1]] #> [1] "Descriptor validation error:\n data.resources - is required" #> #>