You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2021/10/01 23:23:42 UTC

[trafficserver] branch master updated: Traffic Dump: update json-schema for new tuple requirements (#8370)

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

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new cba5e85  Traffic Dump: update json-schema for new tuple requirements (#8370)
cba5e85 is described below

commit cba5e85cb4cfd8f49b1ff1ac358f7cfba8ee3715
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Fri Oct 1 18:23:30 2021 -0500

    Traffic Dump: update json-schema for new tuple requirements (#8370)
    
    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 567a755..8b0baea 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"