Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions flask_restx/schemas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
.. versionadded:: 0.12.1
"""

import importlib.resources
import io
import json

import importlib_resources

from collections.abc import Mapping
from jsonschema import Draft4Validator

Expand Down Expand Up @@ -58,7 +57,7 @@ def __init__(self, filename, validator=Draft4Validator):

def _load(self):
if not self._schema:
ref = importlib_resources.files(__name__) / self.filename
ref = importlib.resources.files(__name__) / self.filename

with io.open(ref) as infile:
self._schema = json.load(infile)
Expand Down
1 change: 0 additions & 1 deletion requirements/install.pip
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ jsonschema
referencing
Flask>=0.8, !=2.0.0
werkzeug!=2.0.0
importlib_resources