Update examples
This commit is contained in:
parent
26346612b5
commit
d67abbdbb1
7 changed files with 311 additions and 107 deletions
12
update-examples.sh
Normal file
12
update-examples.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue