diff --git a/marshmallow_jsonschema/extensions/react_jsonschema_form.py b/marshmallow_jsonschema/extensions/react_jsonschema_form.py index 66c3397..fd39f88 100644 --- a/marshmallow_jsonschema/extensions/react_jsonschema_form.py +++ b/marshmallow_jsonschema/extensions/react_jsonschema_form.py @@ -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:")}