aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-03-21 23:11:01 +0800
committerYoichi Hirai <i@yoichihirai.com>2018-03-21 23:13:34 +0800
commit80bc4e1d6aed9cfd92938c42c976997d5d05bf47 (patch)
tree8acc39d360b6fae3852aaa1e4e489b72eaeec1c7
parenta986dbd957f8dd502843fc15e11af59c7c6bc9b7 (diff)
downloaddexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar.gz
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar.bz2
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar.lz
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar.xz
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.tar.zst
dexon-tests-80bc4e1d6aed9cfd92938c42c976997d5d05bf47.zip
Better dup key validator
-rw-r--r--.travis.yml2
-rwxr-xr-xJSONSchema/validate.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 84b8fa28a..a8cc9bd7a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,7 @@ branches:
- master
- develop
sudo: false
-install: "npm install jsonschema json-duplicate-key-handle"
+install: "npm install jsonschema json-dup-key-validator"
script:
# won't fail, but print problems
- find . -name 'node_modules' -prune -o \( -name "*.json" -not -name "*Filler.json" -exec echo {} \; -exec python -mjson.tool {} /dev/null \; 2>&1 \) | grep -v -B 1 "^\./" | cat
diff --git a/JSONSchema/validate.js b/JSONSchema/validate.js
index 4e4e1fde0..e4c41140e 100755
--- a/JSONSchema/validate.js
+++ b/JSONSchema/validate.js
@@ -4,7 +4,7 @@ var fs = require('fs');
var validate = require('jsonschema').validate;
var readline = require('readline');
var process = require('process');
-var dup = require('json-duplicate-key-handle');
+var dup = require('json-dup-key-validator');
var schemaFile = process.argv[2];