fix(schema): Enhance MAC validation for sessions and events

This commit is contained in:
Adam Outler
2026-02-02 23:19:14 +01:00
parent f43517b9a5
commit 9ca5375652
2 changed files with 2 additions and 2 deletions

View File

@@ -1385,7 +1385,7 @@ def api_add_to_execution_queue(payload=None):
path_params=[{
"name": "mac",
"description": "Device MAC address",
"schema": {"type": "string"}
"schema": {"type": "string", "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"}
}],
request_model=CreateEventRequest,
response_model=BaseResponse,