From 51902cdccbdbd08e64e01722b270bb5b7cff9b16 Mon Sep 17 00:00:00 2001 From: Brian Neradt Date: Fri, 1 Oct 2021 18:23:30 -0500 Subject: [PATCH] Traffic Dump: update json-schema for new tuple requirements More recent versions of json-schema have tuple array element specifications described with "prefixItems" rather than with "items". This updates our Traffic Dump schema to match this requirement. I verified that our tests that use this work with both the older jsonschema 3.2.0 pip package and the current 4.0.1 package. Fixes: 8369 (cherry picked from commit cba5e85cb4cfd8f49b1ff1ac358f7cfba8ee3715) --- tests/tools/lib/replay_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/lib/replay_schema.json b/tests/tools/lib/replay_schema.json index 5e15281e7c6..cfe31234033 100644 --- a/tests/tools/lib/replay_schema.json +++ b/tests/tools/lib/replay_schema.json @@ -135,7 +135,7 @@ "items": { "description": "HTTP field.", "type": "array", - "items": [ + "prefixItems": [ { "description": "Name of the field.", "type": "string"