frictionlessdata / datapackage-js

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

relative schema/dialect are retrieved when remote #111

Closed paulgirard closed 4 years ago

paulgirard commented 4 years ago

Overview

This PR proposes a quick fix to allow to retrieve relative external schema and dialects when using a remote basePath. This feature was identified as missing in the code in a TODO comment.

I added a test using an existing test datapackage but used it in a remote context.

Basically, if the basePath is a remotePath it is added to the path before trying to retrieve it.

All tests pass.


Please preserve this line to notify @roll (maintainer of this repository)