Skip to content

Commit

Permalink
Merge pull request #148 from theirix/use_instances2
Browse files Browse the repository at this point in the history
Pass use_instances parameter for Marshmallow many=True
  • Loading branch information
sloria committed Aug 24, 2017
2 parents ae0369f + 05a466b commit 4857872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apispec/ext/marshmallow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def resolve_parameters(spec, parameters):
def resolve_schema_dict(spec, schema, dump=True, use_instances=False):
if isinstance(schema, dict):
if (schema.get('type') == 'array' and 'items' in schema):
schema['items'] = resolve_schema_dict(spec, schema['items'])
schema['items'] = resolve_schema_dict(spec, schema['items'], use_instances=use_instances)
return schema
plug = spec.plugins[NAME] if spec else {}
if isinstance(schema, marshmallow.Schema) and use_instances:
Expand Down

0 comments on commit 4857872

Please sign in to comment.