From d457c18a03379f51dbb18e1ab3ae5e616d626594 Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Tue, 9 Jul 2024 12:30:31 +0200 Subject: [PATCH] fix: get schemata definied in the context --- src/plone/restapi/types/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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