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",
description="name/filename of the source",
)
bottom: float
left: float
top: float
right: float
bounds: tuple[
Annotated[float, APIField(name="left")],
Annotated[float, APIField(name="bottom")],
Annotated[float, APIField(name="right")],
Annotated[float, APIField(name="top")],
]
class AccessRestrictionSchema(TitledSchema, DjangoModelSchema):