Skip to content

Commit 36f8927

Browse files
committed
refRemote
1 parent 9702367 commit 36f8927

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

jsonschema/tests/test_jsonschema_test_suite.py

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

343343

344-
@load_json_cases("draft6/refRemote.json")
344+
@load_json_cases(
345+
"draft6/refRemote.json",
346+
skip=skip_tests_containing_descriptions(
347+
{
348+
"number is valid": "An actual bug, this needs fixing.",
349+
},
350+
),
351+
)
345352
class Draft6RemoteResolution(RemoteRefResolutionMixin, unittest.TestCase):
346353
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)