mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
fix(schema): Enhance MAC validation for sessions and events
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user