From a17d5c1493206ebb44664844d36445d5a2a62f5f Mon Sep 17 00:00:00 2001 From: s2s Date: Mon, 5 Oct 2020 23:38:08 -0400 Subject: [PATCH] Update one_of_schema.py (#104) Init `type_schemas` as dictionary instead of list. Co-authored-by: bearnun --- marshmallow_oneofschema/one_of_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marshmallow_oneofschema/one_of_schema.py b/marshmallow_oneofschema/one_of_schema.py index e9993f7..7957f46 100644 --- a/marshmallow_oneofschema/one_of_schema.py +++ b/marshmallow_oneofschema/one_of_schema.py @@ -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"""