You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ez...@apache.org on 2021/10/06 15:39:26 UTC

[trafficserver] branch 8.1.x updated: Traffic Dump: update json-schema for new tuple requirements (#8382)

This is an automated email from the ASF dual-hosted git repository.

eze pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.1.x by this push:
     new 673d979  Traffic Dump: update json-schema for new tuple requirements (#8382)
673d979 is described below

commit 673d979d0c62571ed824978f434e67266c1c03b2
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Wed Oct 6 10:39:15 2021 -0500

    Traffic Dump: update json-schema for new tuple requirements (#8382)
    
    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 5e15281..cfe3123 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"