diff --git a/tests/schemas/test_schemas.py b/tests/schemas/test_schemas.py index 220dc49d76a..16fe7ee1e23 100644 --- a/tests/schemas/test_schemas.py +++ b/tests/schemas/test_schemas.py @@ -266,6 +266,14 @@ def test_agent(self): condition=context.library >= "php@1.8.3", ticket="DEBUG-3709", ), + SchemaBug( + endpoint="/api/v2/debugger", + data_path="$[]", + condition=context.library < "dotnet@3.57.0" + or context.library < "nodejs@5.133.0" + or (context.library >= "nodejs@6.0.0" and context.library < "nodejs@6.22.0"), + ticket="DEBUG-6442", + ), SchemaBug( endpoint="/api/v2/apmtelemetry", data_path="$.payload", diff --git a/tests/schemas/utils/agent/api/v2/debugger-request.json b/tests/schemas/utils/agent/api/v2/debugger-request.json index eab053685ad..f9d021bdf8a 100644 --- a/tests/schemas/utils/agent/api/v2/debugger-request.json +++ b/tests/schemas/utils/agent/api/v2/debugger-request.json @@ -3,6 +3,11 @@ "type": "array", "items": { "type": "object", + "if": { + "required": ["debugger"], + "properties": { "debugger": { "type": "object", "required": ["snapshot"] } } + }, + "then": { "required": ["timestamp"] }, "oneOf": [ { "properties": {