Skip to content

Validate target manager request bodies - #3592

Closed
adamtheturtle wants to merge 1 commit into
mainfrom
fix/typed-target-manager-bodies
Closed

Validate target manager request bodies#3592
adamtheturtle wants to merge 1 commit into
mainfrom
fix/typed-target-manager-bodies

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Sep 9, 2026

Copy link
Copy Markdown
Member

Validate target-manager control payloads as precise Pydantic models or TypedDict adapters before constructing domain objects. OAuth credentials, image targets, partial target updates, and recognition counts now have known types, removing 22 Pyrefly suppressions at once.

Validation:

  • uv run pytest -q tests/mock_vws/test_flask_app_usage.py (48 passed)
  • uv run prek run --all-files
  • uv run prek run --all-files --hook-stage pre-push
  • uv run prek run --all-files --hook-stage manual

@adamtheturtle

Copy link
Copy Markdown
Member Author

Consolidated into #3590 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