...

Text file src/github.com/go-openapi/validate/update-fixtures.sh

Documentation: github.com/go-openapi/validate

     1#!/bin/bash 
     2
     3set -eu -o pipefail
     4dir=$(git rev-parse --show-toplevel)
     5scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
     6
     7function finish {
     8  rm -rf "$scratch"
     9}
    10trap finish EXIT SIGHUP SIGINT SIGTERM
    11
    12cd "$scratch"
    13git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
    14cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
    15cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"

View as plain text