Skip to content

Commit

Permalink
fix metadata for marshmallow 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrysteve committed Jan 25, 2021
1 parent 3775948 commit 76c8763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions marshmallow_jsonschema/extensions/react_jsonschema_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ def _dump_uischema_iter(self, obj, many=None, *args):
yield k, v

for field_name, field in obj.fields.items():
# NOTE: doubled up to maintain backwards compatibility
metadata = field.metadata.get("metadata", {})
metadata.update(field.metadata)
yield field_name, {k: v for k, v in metadata.items() if k.startswith("ui:")}

0 comments on commit 76c8763

Please sign in to comment.