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 86e6241 commit d457c18
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 @@ -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
Expand Down

0 comments on commit d457c18

Please sign in to comment.