From 0b609529d0b29a0a3689568fe9d89be7c70245a3 Mon Sep 17 00:00:00 2001 From: Brian Neradt Date: Fri, 1 Oct 2021 20:45:59 +0000 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 --- 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 567a755578e..8b0baea29ff 100644 --- a/tests/tools/lib/replay_schema.json +++ b/tests/tools/lib/replay_schema.json @@ -166,7 +166,7 @@ "items": { "description": "HTTP field.", "type": "array", - "items": [ + "prefixItems": [ { "description": "Name of the field.", "type": "string"