Update examples

This commit is contained in:
Graham Esau 2019-12-26 20:39:18 +00:00
parent 26346612b5
commit d67abbdbb1
7 changed files with 311 additions and 107 deletions

12
update-examples.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -euxo pipefail
cd schemars/examples
rm -f *.schema.json
for file in *.rs
do
example=${file%.rs}
cargo run --example "$example" > "$example.schema.json"
done