Skip to content

Commit

Permalink
🐛 [#208] fixed bug where expand documentation would show dict instead…
Browse files Browse the repository at this point in the history
… of list of dict
  • Loading branch information
bart-maykin committed Aug 8, 2024
1 parent af5e123 commit f10fd5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/openklant/components/utils/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def get_expand_response(self, serializer, base_response, direction):

inclusion_ref = self.resolve_serializer(inclusion_serializer, direction).ref

many = True if hasattr(inclusion_field, "child_relation") else False
many = (
True
if hasattr(inclusion_field, "child_relation")
or hasattr(inclusion_field, "many")
else False
)
if many:
inclusion_schema = append_meta(build_array_type(inclusion_ref), meta)
else:
Expand Down

0 comments on commit f10fd5e

Please sign in to comment.