frictionlessdata / datapackage-js

A JavaScript library for working with Data Package.
http://frictionlessdata.io/
MIT License
43 stars 15 forks source link

Implement validate function #13

Closed roll closed 7 years ago

roll commented 7 years ago

Overview

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.

Tasks