Skip to content

Validate Model Target error JSON - #3220

Closed
adamtheturtle wants to merge 2 commits into
mainfrom
fix/model-target-error-json
Closed

Validate Model Target error JSON#3220
adamtheturtle wants to merge 2 commits into
mainfrom
fix/model-target-error-json

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

  • add a recursive JSON value type to the shared JSON validation helpers
  • recursively validate decoded objects and arrays at the untrusted response boundary
  • reuse those helpers for Model Target error envelopes, nested detail arrays, and string fields
  • remove eight Pyrefly suppressions

Validation

  • uv run --group=dev prek run --all-files --hook-stage pre-commit
  • uv run --group=dev prek run --all-files --hook-stage pre-push
  • uv run --group=dev pytest -q (460 passed)

@adamtheturtle

Copy link
Copy Markdown
Member Author

Consolidated into #3219 so this cleanup is represented by one PR for the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant