From c4ec3d4ac59cf80c891dc4e2b528255db069149e Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Tue, 9 Jul 2024 12:14:16 +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 b3f78c991f..c10072a940 100644 --- a/src/plone/restapi/types/utils.py +++ b/src/plone/restapi/types/utils.py @@ -227,7 +227,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