fix: Update integration name to SOCFORTRESS AI in SocfortressAiAlertRequest model
Taylor committed
Nov 14, 2024 at 09:07 UTC
6cfb272c286a56a99e0e6be6a98a6ed3d2759d12
1 file changed
+2
-2
backend/app/threat_intel/schema/socfortress.py
+2
-2
@@ -70,12 +70,12 @@ class SyslogType(str, Enum):
70
71
72
class SocfortressAiAlertRequest(BaseModel):
73
- integration: str = Field(..., example="AI")
73
+ integration: str = Field(..., example="SOCFORTRESS AI")
74
alert_payload: dict = Field(..., example={"alert": "test"})
75
76
@validator("integration")
77
def check_integration(cls, v):
78
- if v != "AI":
78
+ if v != "SOCFORTRESS AI":
79
raise HTTPException(
80
status_code=400,
81
detail="Invalid integration. Only 'AI' is supported.",