Skip to content

Commit

Permalink
[v0.8.6][xs]: new version re update in tableschema library
Browse files Browse the repository at this point in the history
- IP addresses are not considered as URIs anymore
- when validation fails for incorrect resource.path property, we show more details
  • Loading branch information
anuveyatsu committed Mar 15, 2018
1 parent f9554b8 commit 6811da0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions bin/data-validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ validator.validate().then(result => {
}
else {
error(result)
// Show more details of error when `path` property doesn't match the pattern:
if (result[0].toString().includes('/resources/0/path')) {
error('`path` property does not match pattern "^(?=^[^./~])(^((?!\\.{2}).)*$).*$"')
}
}
}
}).catch(err => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-cli",
"version": "0.8.5",
"version": "0.8.6",
"description": "CLI for working with data packages",
"main": "./lib/index.js",
"bin": {
Expand Down Expand Up @@ -72,8 +72,8 @@
"boxen": "^1.3.0",
"chalk": "^2.3.0",
"clipboardy": "^1.1.4",
"data.js": "^0.11.0",
"datahub-client": "^0.4.1",
"data.js": "^0.11.1",
"datahub-client": "^0.4.2",
"human-readable-ids": "^1.0.3",
"inquirer": "^5.1.0",
"inquirer-test": "^2.0.1",
Expand Down

0 comments on commit 6811da0

Please sign in to comment.