mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1805] [CLOSED] setup: install jsonschema, so json_schema answers are checked against their schema #3685
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3685
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
f817b2fsetup: 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.pyvalidatesjson_schemaanswers withjsonschemawhen 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_PACKAGESand 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_startpasses), and still works without it. Allserveand setup test files pass onmainfb58e0d.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.