Skip to content

Commit d0d50c3

Browse files
committed
refRemote
1 parent a3b8ff9 commit d0d50c3

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

jsonschema/tests/test_jsonschema_test_suite.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,13 @@ class Draft4RemoteResolution(RemoteRefResolutionMixin, unittest.TestCase):
340340
validator_class = Draft4Validator
341341

342342

343-
@load_json_cases("draft6/refRemote.json")
343+
@load_json_cases(
344+
"draft6/refRemote.json",
345+
skip=skip_tests_containing_descriptions(
346+
{
347+
"number is valid": "An actual bug, this needs fixing.",
348+
},
349+
),
350+
)
344351
class Draft6RemoteResolution(RemoteRefResolutionMixin, unittest.TestCase):
345352
validator_class = Draft6Validator

jsonschema/validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def iter_errors(self, instance, _schema=None):
101101
elif _schema == False:
102102
_schema = {"not": {}}
103103

104-
scope = _schema.get(u"id")
104+
scope = _schema.get(u"$id")
105105
if scope:
106106
self.resolver.push_scope(scope)
107107
try:
@@ -372,7 +372,7 @@ def from_schema(cls, schema, *args, **kwargs):
372372
373373
"""
374374

375-
return cls(schema.get(u"id", u""), schema, *args, **kwargs)
375+
return cls(schema.get(u"$id", u""), schema, *args, **kwargs)
376376

377377
def push_scope(self, scope):
378378
self._scopes_stack.append(

0 commit comments

Comments
 (0)