feat(models): Added AssertModel

AsserrtModel needs for checking answer
class AssertModel:
    type: str            # What to check: "status" / "json" / "header"
    path: str            # Where to look: "$.user.id"
    operator: str        # How to check: "equals" / "exists" / "gt"
    value: Any           # What to check against: 200 / true
This commit is contained in:
Black_Raven committed 2026-08-24 15:35:47 +03:00
1 parent 2784e3f156
commit c0af7f5bf3
1 file changed
+7
+7
View File
@@ -14,6 +14,13 @@ class ExtractModel(BaseModel):
source: str = "body" source: str = "body"
class AssertModel(BaseModel):
type: str
path: str | None = None
operator: str = "equals"
value: Any = None
class StepModel(BaseModel): class StepModel(BaseModel):
name: str name: str
request: RequestModel request: RequestModel