[PR #9] [MERGED] chore(json-schema-generator): generate_json_schema.py script helpful for generating schemas for pydantic models #11

Closed
opened 2026-04-10 16:03:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KohakuBlueleaf/KohakuHub/pull/9
Author: @zdunecki
Created: 1/30/2026
Status: Merged
Merged: 2/12/2026
Merged by: @KohakuBlueleaf

Base: mainHead: chore/json-schema-generator


📝 Commits (2)

  • 5071de2 chore(json-schema-generator): generate_json_schema.py script helpful for generating schemas for pydantic models
  • 8d340a5 chore(json-schema-generator): added generated to .gitignor

📊 Changes

3 files changed (+46 additions, -0 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 scripts/README.md (+15 -0)
scripts/generate_json_schema.py (+30 -0)

📄 Description

Pull Request

What changed?

A script to generate pydantic models to json schema at __generated__/schemas/<model>.json.

Why?

Useful for automation and KohakuHub adoption. For example schema could help create terraform deployment more easily.

Testing

  • Tested locally

Checklist

  • Code follows project style (see CONTRIBUTING.md)
  • Updated docs if needed (README, API.md, CLI.md, etc.)
  • No breaking changes (or documented them)
  • Tested my changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/KohakuBlueleaf/KohakuHub/pull/9 **Author:** [@zdunecki](https://github.com/zdunecki) **Created:** 1/30/2026 **Status:** ✅ Merged **Merged:** 2/12/2026 **Merged by:** [@KohakuBlueleaf](https://github.com/KohakuBlueleaf) **Base:** `main` ← **Head:** `chore/json-schema-generator` --- ### 📝 Commits (2) - [`5071de2`](https://github.com/KohakuBlueleaf/KohakuHub/commit/5071de22f3f875c6862febdffd4bb99dd31c3d55) chore(json-schema-generator): generate_json_schema.py script helpful for generating schemas for pydantic models - [`8d340a5`](https://github.com/KohakuBlueleaf/KohakuHub/commit/8d340a5c8937a8b28a7fc49c29ffe2b4f11c27df) chore(json-schema-generator): added __generated__ to .gitignor ### 📊 Changes **3 files changed** (+46 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `scripts/README.md` (+15 -0) ➕ `scripts/generate_json_schema.py` (+30 -0) </details> ### 📄 Description # Pull Request ## What changed? A script to generate pydantic models to json schema at `__generated__/schemas/<model>.json`. ## Why? Useful for automation and KohakuHub adoption. For example schema could help create terraform deployment more easily. ## Testing <!-- How did you test this? --> - [x] Tested locally ## Checklist - [x] Code follows project style (see CONTRIBUTING.md) - [x] Updated docs if needed (README, API.md, CLI.md, etc.) - [x] No breaking changes (or documented them) - [x] Tested my changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-10 16:03:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/KohakuHub#11