Fixes compatibility with jsonschema >= 4.16.0

Jsonschema has changed the type of a parameter from a simple
tuple to a pyrsistent map object. Since we were passing in the
defaults anyway, this patch removes those parameters from the
jsonschema call. This makes designate compatible with
jsonschema >= 4.16.0.

Closes-Bug: #1992677
Change-Id: I9cc94506a63371ad78b204030e5e87339982e9e7
This commit is contained in:
Michael Johnson 2022-10-12 16:50:57 +00:00 committed by Dr. Jens Harbott
parent 6fee42ecac
commit d6eabef4de
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ LOG = logging.getLogger(__name__)
class LocalResolver(jsonschema.RefResolver):
def __init__(self, base_uri, referrer):
super(LocalResolver, self).__init__(base_uri, referrer, (), True)
super(LocalResolver, self).__init__(base_uri, referrer)
self.api_version = None
@classmethod

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fixed designate compatibility with jsonschema >= 4.16.0.