mfeit-dev $ ./run-tests --prefix pScheduler "json-dictionary.json" "./tests"
/home/mfeit/work/pscheduler/pscheduler-json-dictionary/pscheduler-json-dictionary/./run-tests:95: DeprecationWarning: Accessing jsonschema.draft7_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
format_checker=jsonschema.draft7_format_checker
/home/mfeit/work/pscheduler/pscheduler-json-dictionary/pscheduler-json-dictionary/./run-tests:99: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
except (jsonschema.exceptions.ValidationError, jsonschema.exceptions.RefResolutionError) as ex:
Some things to do:
Upgrade
python3-jsonschemato the latest version. Ours is very old because there are old, unsupported pythons we are/were still distributing for. See Upgrade python-jsonschema to latest #1446.Drop use of
/localin favor of$defs. See https://json-schema.org/understanding-json-schema/structuring#defs.Remove
/localsupport inpscheduler-build-enumeration.Fix this warning that occurs in the JSON dictionary's tester: