Skip to content

Commit

Permalink
Update one_of_schema.py (#104)
Browse files Browse the repository at this point in the history
Init `type_schemas` as dictionary instead of list.

Co-authored-by: bearnun <[email protected]>
  • Loading branch information
s2s and bearnun authored Oct 6, 2020
1 parent 5e5fdb2 commit a17d5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marshmallow_oneofschema/one_of_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_obj_type(self, obj):

type_field = "type"
type_field_remove = True
type_schemas = []
type_schemas = {}

def get_obj_type(self, obj):
"""Returns name of object schema"""
Expand Down

0 comments on commit a17d5c1

Please sign in to comment.