summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-openapi/validate/update-fixtures.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-openapi/validate/update-fixtures.sh')
-rw-r--r--vendor/github.com/go-openapi/validate/update-fixtures.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/go-openapi/validate/update-fixtures.sh b/vendor/github.com/go-openapi/validate/update-fixtures.sh
new file mode 100644
index 000000000..21b06e2b0
--- /dev/null
+++ b/vendor/github.com/go-openapi/validate/update-fixtures.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -eu -o pipefail
+dir=$(git rev-parse --show-toplevel)
+scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
+
+function finish {
+ rm -rf "$scratch"
+}
+trap finish EXIT SIGHUP SIGINT SIGTERM
+
+cd "$scratch"
+git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
+cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
+cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"