[PR #1805] [CLOSED] setup: install jsonschema, so json_schema answers are checked against their schema #3685

Closed
opened 2026-11-07 15:30:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1805
Author: @gt50
Created: 10/10/2026
Status: ❌ Closed

Base: main ← Head: jsonschema


📝 Commits (1)

  • f817b2f setup: install jsonschema, so json_schema answers are checked against their schema

📊 Changes

4 files changed (+14 additions, -7 deletions)

View changed files

📝 docs/DETAILS.md (+3 -3)
📝 requirements.txt (+6 -0)
📝 setup.py (+3 -3)
📝 tools/test_setup_pins.py (+2 -1)

📄 Description

Title

setup: install jsonschema, so json_schema answers are checked against their schema

Summary

serve/structured.py validates json_schema answers with jsonschema when it is installed. Setup never installed it, so on a normal install answers were only checked to be one JSON object, and the server said so once (the Python package jsonschema is not installed). Split out of #1789 (which now only carries the Windows AMD images), as AGENTS.md asks: one change per PR, a new feature opt-in.

What changed

  • requirements.txt: jsonschema==4.26.0, pinned with its dependencies (attrs, jsonschema-specifications, referencing, rpds-py, typing_extensions).
  • setup.py: PY_PACKAGES and the two "packages installed" lines.
  • tools/test_setup_pins.py: the pre-pin install test knows the new dependencies.
  • docs/DETAILS.md: setup installs it now; an older install gets it with UPDATE.bat / update.sh.

Extra Notes

The server still imports it lazily (test_the_server_does_not_import_jsonschema_at_start passes), and still works without it. All serve and setup test files pass on main fb58e0d.

🤖 Generated with Claude Code


🔄 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/Niko1221/Strata/pull/1805 **Author:** [@gt50](https://github.com/gt50) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `jsonschema` --- ### 📝 Commits (1) - [`f817b2f`](https://github.com/Niko1221/Strata/commit/f817b2f7ea981ed0490f7d342b2ee4371f8ba99a) setup: install jsonschema, so json_schema answers are checked against their schema ### 📊 Changes **4 files changed** (+14 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+3 -3) 📝 `requirements.txt` (+6 -0) 📝 `setup.py` (+3 -3) 📝 `tools/test_setup_pins.py` (+2 -1) </details> ### 📄 Description ## Title setup: install jsonschema, so json_schema answers are checked against their schema ## Summary `serve/structured.py` validates `json_schema` answers with `jsonschema` when it is installed. Setup never installed it, so on a normal install answers were only checked to be one JSON object, and the server said so once (`the Python package jsonschema is not installed`). Split out of #1789 (which now only carries the Windows AMD images), as AGENTS.md asks: one change per PR, a new feature opt-in. ## What changed - **`requirements.txt`:** `jsonschema==4.26.0`, pinned with its dependencies (`attrs`, `jsonschema-specifications`, `referencing`, `rpds-py`, `typing_extensions`). - **`setup.py`:** `PY_PACKAGES` and the two "packages installed" lines. - **`tools/test_setup_pins.py`:** the pre-pin install test knows the new dependencies. - **`docs/DETAILS.md`:** setup installs it now; an older install gets it with UPDATE.bat / update.sh. ## Extra Notes The server still imports it lazily (`test_the_server_does_not_import_jsonschema_at_start` passes), and still works without it. All `serve` and setup test files pass on `main` fb58e0d. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3685
No description provided.