Skip to content

Commit

Permalink
fix: get schemata definied in the context
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jul 9, 2024
1 parent b25d750 commit c4ec3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/restapi/types/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4ec3d4

Please sign in to comment.