Skip to content

Commit

Permalink
fix schema formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
postrowinski committed Dec 17, 2024
1 parent 1994e68 commit 086e951
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mwdb/schema/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from .tag import TagItemResponseSchema, TagRequestSchema
from .utils import UTCDateTime


class ObjectListRequestSchema(Schema):
page = fields.Int(missing=None) # legacy, to be removed in future
query = fields.Str(missing=None)
Expand Down Expand Up @@ -110,7 +111,11 @@ class ObjectItemResponseSchema(Schema):
attribute="accessible_parents",
)
children = fields.Nested(
ObjectListItemResponseSchema, many=True, required=True, allow_none=False, attribute='limit_children'
ObjectListItemResponseSchema,
many=True,
required=True,
allow_none=False,
attribute="limit_children",
)

attributes = fields.Nested(
Expand Down

0 comments on commit 086e951

Please sign in to comment.