chore(json-schema-generator): generate_json_schema.py script helpful for generating schemas for pydantic models

This commit is contained in:
Patryk Zdunowski
2026-01-30 18:21:54 +01:00
parent 3eb363f45a
commit 5071de22f3
3 changed files with 522 additions and 0 deletions

View File

@@ -539,6 +539,21 @@ export KOHAKU_HUB_BASE_URL=http://localhost:28080
---
## JSON Schema Generator
### Generate JSON Schema
```bash
python scripts/generate_json_schema.py
```
This script will generate a JSON schema for the KohakuHub types in `__generated__/schemas/<filename>.json`.
Currently supported files:
- `config.json`
---
## Tips for Demo Deployments
### CloudFlare R2 Free Tier