Skip to content

Commit

Permalink
Pass marshmallow context into nested schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwheel42 committed Nov 5, 2021
1 parent 16cb2df commit eee1866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marshmallow_jsonschema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def _from_nested_schema(self, obj, field):
only = field.only
exclude = field.exclude
nested_cls = nested
nested_instance = nested(only=only, exclude=exclude)
nested_instance = nested(only=only, exclude=exclude, context=obj.context)
else:
nested_cls = nested.__class__
name = nested_cls.__name__
Expand Down

0 comments on commit eee1866

Please sign in to comment.