Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
codeasashu committed Nov 4, 2019
1 parent 703687f commit dc1760d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apispec/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def example(self, name, component=None, **kwargs):
raise DuplicateComponentNameError(
'Another example with name "{}" is already registered.'.format(name)
)
self._examples[name] = component or {}
self._examples[name] = component
return self

def schema(self, name, component=None, **kwargs):
Expand Down

0 comments on commit dc1760d

Please sign in to comment.