From 671a7b1b02503cfa5c9aecd40c27a0c2729a285b Mon Sep 17 00:00:00 2001 From: stuppie Date: Wed, 4 Nov 2026 12:11:03 -0600 Subject: strip out AMT --- jb/models/api_response.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 jb/models/api_response.py (limited to 'jb/models/api_response.py') diff --git a/jb/models/api_response.py b/jb/models/api_response.py deleted file mode 100644 index 6b29e51..0000000 --- a/jb/models/api_response.py +++ /dev/null @@ -1,17 +0,0 @@ -from pydantic import BaseModel, ConfigDict, Field, model_validator - -from jb.models.assignment import Assignment -from jb.models.hit import Hit - - -class AssignmentResponse(BaseModel): - model_config = ConfigDict(extra="forbid", validate_assignment=True) - - assignment: Assignment = Field(alias="Assignment") - hit: Hit = Field(alias="HIT") - - @model_validator(mode="after") - def check_consistent_hit_id(self) -> "AssignmentResponse": - if self.hit.id != self.assignment.hit_id: - raise ValueError("Inconsistent Hit IDs") - return self -- cgit v1.2.3