fix SourceSchema

This commit is contained in:
Laura Klünder 2023-12-03 17:39:58 +01:00
parent f7f77b2823
commit 635b9ab406

View file

@ -301,10 +301,12 @@ class SourceSchema(WithAccessRestrictionSchema, DjangoModelSchema):
title="name", title="name",
description="name/filename of the source", description="name/filename of the source",
) )
bottom: float bounds: tuple[
left: float Annotated[float, APIField(name="left")],
top: float Annotated[float, APIField(name="bottom")],
right: float Annotated[float, APIField(name="right")],
Annotated[float, APIField(name="top")],
]
class AccessRestrictionSchema(TitledSchema, DjangoModelSchema): class AccessRestrictionSchema(TitledSchema, DjangoModelSchema):