Add JSON Schema 2019-09 settings
This commit is contained in:
parent
233b1a4165
commit
0198ede4b6
7 changed files with 793 additions and 8 deletions
14
update-tests.sh
Normal file
14
update-tests.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
cd schemars
|
||||
|
||||
rm -f tests/actual/*.json
|
||||
|
||||
cargo test --all-features --no-fail-fast --tests || :
|
||||
|
||||
if ls tests/actual/*.json 1> /dev/null 2>&1; then
|
||||
mv -f tests/actual/*.json tests/expected/
|
||||
else
|
||||
echo "Test schemas are up-to-date."
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue