diff --git a/src/plone/restapi/types/utils.py b/src/plone/restapi/types/utils.py index e146f9b992..650aa625f9 100644 --- a/src/plone/restapi/types/utils.py +++ b/src/plone/restapi/types/utils.py @@ -229,7 +229,7 @@ def get_jsonschema_for_fti(fti, context, request, excluded_fields=None): fieldsets = () additional_schemata = () else: - additional_schemata = tuple(getAdditionalSchemata(portal_type=fti.id)) + additional_schemata = tuple(getAdditionalSchemata(context=context)) fieldsets = get_fieldsets(context, request, schema, additional_schemata) # Build JSON schema properties