fix schemas

This commit is contained in:
yusing
2025-01-25 07:04:01 +08:00
parent 9e181d25ce
commit 322878b0b7
12 changed files with 48 additions and 23 deletions

View File

@@ -95,7 +95,7 @@ build-docker:
# }
gen-schema-single:
bun run typescript-json-schema --noExtraProps --required --skipLibCheck --tsNodeRegister=true -o schemas/${OUT} schemas/${IN} ${CLASS}
bun --bun run typescript-json-schema --noExtraProps --required --skipLibCheck --tsNodeRegister=true -o schemas/${OUT} schemas/${IN} ${CLASS}
# minify
python3 -c "import json; f=open('schemas/${OUT}', 'r'); j=json.load(f); f.close(); f=open('schemas/${OUT}', 'w'); json.dump(j, f, separators=(',', ':'));"