Closed roll closed 7 years ago
There should be a function to validate datapackage descriptor against datapackage profile schema:
async validate(descriptor, profile='base', remote_profiles=False) -> raise/true
It should raise list of errors. See - https://github.com/frictionlessdata/jsontableschema-js#validate
This function should encapsulate work with different datapackage profiles (register) - we should decide how based on datapackage-py experience. This function will be used inside DataPackage class.
datapackage-py
DataPackage
validate
data
Overview
There should be a function to validate datapackage descriptor against datapackage profile schema:
It should raise list of errors. See - https://github.com/frictionlessdata/jsontableschema-js#validate
This function should encapsulate work with different datapackage profiles (register) - we should decide how based on
datapackage-py
experience. This function will be used insideDataPackage
class.Tasks
validate
function (see API above)data
dir (real datapackage descriptors)