forked from MapComplete/MapComplete
Chore: update generateSchemas to work with current version
This commit is contained in:
parent
3319c516c9
commit
84df5b5624
4 changed files with 236 additions and 227 deletions
10
scripts/generateSchemas.sh
Executable file
10
scripts/generateSchemas.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
for file in src/Models/ThemeConfig/Json/*Json.ts; do
|
||||
echo "Processing $file"
|
||||
filename=$(basename "$file" .${file##*.})
|
||||
echo $filename
|
||||
npx ts-json-schema-generator --unstable --no-top-ref -p $file > Docs/Schemas/$filename.schema.json
|
||||
done
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue