Skip to content

Commit 75e8de5

Browse files
author
Víctor Ruiz
committed
Restore DictItem
1 parent 856330a commit 75e8de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapy_jsonschema/item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
draft7_format_checker,
2424
)
2525

26-
from scrapy.item import Item, Field
26+
from scrapy.item import DictItem, Field
2727

2828

2929
def _merge_schema(base, new):
@@ -115,7 +115,7 @@ def _get_validator(cls, schema):
115115

116116

117117
@six.add_metaclass(JsonSchemaMeta)
118-
class JsonSchemaItem(Item):
118+
class JsonSchemaItem(DictItem):
119119
jsonschema = {"properties": {}}
120120
merge_schema = False # Off for backward-compatibility
121121

0 commit comments

Comments
 (0)