Skip to content

Commit

Permalink
Fix items field conflict with dict.items() (#308)
Browse files Browse the repository at this point in the history
Closes #307
  • Loading branch information
PaulWay authored and axnsan12 committed Feb 21, 2019
1 parent 583e404 commit 3d43ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drf_yasg/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def __init__(self, type=None, format=None, enum=None, pattern=None, items=None,
self.format = format
self.enum = enum
self.pattern = pattern
self.items = items
self.items_ = items
self._insert_extras__()
_check_type(type, format, enum, pattern, items, self.__class__)

Expand Down Expand Up @@ -434,7 +434,7 @@ def __init__(self, name, in_, description=None, required=None, schema=None,
self.format = format
self.enum = enum
self.pattern = pattern
self.items = items
self.items_ = items
self.default = default
self._insert_extras__()
if (not schema and not type) or (schema and type):
Expand Down Expand Up @@ -492,7 +492,7 @@ def __init__(self, title=None, description=None, type=None, format=None, enum=No
self.format = format
self.enum = enum
self.pattern = pattern
self.items = items
self.items_ = items
self.read_only = read_only
self.default = default
self._insert_extras__()
Expand Down

0 comments on commit 3d43ee6

Please sign in to comment.