Skip to content

Commit

Permalink
Revert RefRevolver
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jul 12, 2023
1 parent 9c6b2eb commit 2372df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pay-api/src/pay_api/schemas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from os import listdir, path
from typing import Tuple

from jsonschema import Draft7Validator, _RefResolver, SchemaError
from jsonschema import Draft7Validator, RefResolver, SchemaError


BASE_URI = 'https://bcrs.gov.bc.ca/.well_known/schemas'
Expand Down Expand Up @@ -88,7 +88,7 @@ def validate(json_data: json,
Draft7Validator.check_schema(schema)

schema_file_path = path.join(schema_search_path, schema_id)
resolver = _RefResolver(f'file://{schema_file_path}.json', schema, schema_store)
resolver = RefResolver(f'file://{schema_file_path}.json', schema, schema_store)

draft_7_validator = Draft7Validator(schema,
format_checker=Draft7Validator.FORMAT_CHECKER,
Expand Down

0 comments on commit 2372df7

Please sign in to comment.