We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@abstractmethod
1 parent afb82c6 commit 5f44accCopy full SHA for 5f44acc
src/check_jsonschema/schema_loader/main.py
@@ -5,7 +5,7 @@
5
import typing as t
6
import urllib.error
7
import urllib.parse
8
-from abc import ABC
+from abc import ABC, abstractmethod
9
10
import jsonschema
11
@@ -61,6 +61,7 @@ def _extend_with_pattern_implementation(
61
62
63
class SchemaLoaderBase(ABC):
64
+ @abstractmethod
65
def get_validator(
66
self,
67
path: pathlib.Path | str,
@@ -69,7 +70,7 @@ def get_validator(
69
70
regex_impl: RegexImplementation,
71
fill_defaults: bool,
72
) -> jsonschema.protocols.Validator:
- pass
73
+ """Get a validator for the given instance document."""
74
75
76
class SchemaLoader(SchemaLoaderBase):
0 commit comments