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
2 changes: 1 addition & 1 deletion genson/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, prog=None):

def run(self):
if not self.args.schema and not self.args.object:
self.fail('noting to do - no schemas or objects given')
self.fail('nothing to do - no schemas or objects given')
self.add_schemas()
self.add_objects()
self.print_output()
Expand Down
7 changes: 0 additions & 7 deletions genson/schema/strategies/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ def _matching_pattern(self, prop):
if search(pattern, prop):
return pattern

def _add(self, items, func):
while len(self._items) < len(items):
self._items.append(self._schema_node_class())

for subschema, item in zip(self._items, items):
getattr(subschema, func)(item)

def to_schema(self):
schema = super().to_schema()
schema['type'] = 'object'
Expand Down