Chore: update generateSchemas to work with current version

This commit is contained in:
Pieter Vander Vennet 2025-02-28 14:05:50 +01:00
parent 3319c516c9
commit 84df5b5624
4 changed files with 236 additions and 227 deletions

10
scripts/generateSchemas.sh Executable file
View 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