bneradt commented on issue #8369:
URL: https://github.com/apache/trafficserver/issues/8369#issuecomment-932515480


   The actual jsonschema failure can be seen in the output of 1-tr-Default, the 
test run which runs the verification:
   
   ```
   $ bash _output/1-tr-Default/replay.sh 
   _output/1-tr-Default/replay.sh: line 24: __git_ps1: command not found
   Traceback (most recent call last):
     File "verify_replay.py", line 446, in <module>
       sys.exit(main())
     File "verify_replay.py", line 394, in main
       if not validate_json(schema_json, replay_json):
     File "verify_replay.py", line 53, in validate_json
       jsonschema.validate(instance=replay_json, schema=schema_json)
     File 
"/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib/python3.8/site-packages/jsonschema/validators.py",
 line 963, in validate
       cls.check_schema(schema)
     File 
"/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib/python3.8/site-packages/jsonschema/validators.py",
 line 183, in check_schema
       raise exceptions.SchemaError.create_from(error)
   jsonschema.exceptions.SchemaError: [{'description': 'Name of the field.', 
'type': 'string'}, {'description': 'Value of the field.', 'type': 'string'}] is 
not of type 'object', 'boolean'
   
   Failed validating 'type' in 
metaschema['properties']['definitions']['additionalProperties']['$dynamicRef']['allOf'][1]['properties']['properties']['additionalProperties']['$dynamicRef']['allOf'][1]['properties']['items']['$dynamicRef']['allOf'][1]['properties']['items']['$dynamicRef']['allOf'][0]:
       {'$defs': {'anchorString': {'pattern': '^[A-Za-z_][-A-Za-z0-9._]*$',
                                   'type': 'string'},
                  'uriReferenceString': {'format': 'uri-reference',
                                         'type': 'string'},
                  'uriString': {'format': 'uri', 'type': 'string'}},
        '$dynamicAnchor': 'meta',
        '$id': 'https://json-schema.org/draft/2020-12/meta/core',
        '$schema': 'https://json-schema.org/draft/2020-12/schema',
        '$vocabulary': {'https://json-schema.org/draft/2020-12/vocab/core': 
True},
        'properties': {'$anchor': {'$ref': '#/$defs/anchorString'},
                       '$comment': {'type': 'string'},
                       '$defs': {'additionalProperties': {'$dynamicRef': 
'#meta'},
                                 'type': 'object'},
                       '$dynamicAnchor': {'$ref': '#/$defs/anchorString'},
                       '$dynamicRef': {'$ref': '#/$defs/uriReferenceString'},
                       '$id': {'$comment': 'Non-empty fragments not allowed.',
                               '$ref': '#/$defs/uriReferenceString',
                               'pattern': '^[^#]*#?$'},
                       '$ref': {'$ref': '#/$defs/uriReferenceString'},
                       '$schema': {'$ref': '#/$defs/uriString'},
                       '$vocabulary': {'additionalProperties': {'type': 
'boolean'},
                                       'propertyNames': {'$ref': 
'#/$defs/uriString'},
                                       'type': 'object'}},
        'title': 'Core vocabulary meta-schema',
        'type': ['object', 'boolean']}
   
   On 
schema['definitions']['header-fields']['properties']['fields']['items']['items']:
       [{'description': 'Name of the field.', 'type': 'string'},
        {'description': 'Value of the field.', 'type': 'string'}]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to