commit d52fb8cb6d2ed8893bc36f2f1f786cd890b1732e
Author: Nozomi Kawamoto <email address hidden>
Date: Sat Feb 25 00:33:46 2023 +0900
Fix DeprecationWarning of jsonschema
`jsonschema.draft4_format_checker` and also `jsonschema.FormatChecker.cls_checks`
are deprecated and DeprecationWarning appears every time so these make
logs a little dirty and also these attribute/classmethod will be removed
in the future.
Therefore `jsonschema.draft4_format_checker` should be replaced with
`jsonschema.Draft4Validator.FORMAT_CHECKER` and
`jsonschema.FormatChecker.cls_checks` should be replaced with
`jsonschema.Draft4Validator.FORMAT_CHECKER.checks`.
Eventually, DeprecationWarning for jsonschema will disappear with this
proposed fix.
Reviewed: https:/ /review. opendev. org/c/openstack /tempest/ +/875264 /opendev. org/openstack/ tempest/ commit/ d52fb8cb6d2ed88 93bc36f2f1f786c d890b1732e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d52fb8cb6d2ed88 93bc36f2f1f786c d890b1732e
Author: Nozomi Kawamoto <email address hidden>
Date: Sat Feb 25 00:33:46 2023 +0900
Fix DeprecationWarning of jsonschema
`jsonschema .draft4_ format_ checker` and also `jsonschema. FormatChecker. cls_checks` classmethod will be removed
are deprecated and DeprecationWarning appears every time so these make
logs a little dirty and also these attribute/
in the future.
Therefore `jsonschema. draft4_ format_ checker` should be replaced with .Draft4Validato r.FORMAT_ CHECKER` and .FormatChecker. cls_checks` should be replaced with .Draft4Validato r.FORMAT_ CHECKER. checks` .
`jsonschema
`jsonschema
`jsonschema
Eventually, DeprecationWarning for jsonschema will disappear with this
proposed fix.
Closes-Bug: #2008490 bbcbc718d13223d a156b0e5ec3
Change-Id: I1ef326b8ac17f4