From 73238f6943763e483b1f31051e8702939af26fa6 Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Sun, 3 Dec 2023 20:33:42 +0100 Subject: [PATCH] LocationGeometry id can be custom location or position id --- src/c3nav/mapdata/schemas/responses.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c3nav/mapdata/schemas/responses.py b/src/c3nav/mapdata/schemas/responses.py index 3782af4c..f440c187 100644 --- a/src/c3nav/mapdata/schemas/responses.py +++ b/src/c3nav/mapdata/schemas/responses.py @@ -5,6 +5,7 @@ from pydantic import Field as APIField from pydantic import PositiveInt from c3nav.api.schema import GeometrySchema +from c3nav.mapdata.schemas.model_base import AnyLocationID class BoundsSchema(Schema): @@ -18,7 +19,7 @@ class BoundsSchema(Schema): class LocationGeometry(Schema): - id: PositiveInt = APIField( + id: AnyLocationID = APIField( description="ID of the location that the geometry is being queried for", ) level: Optional[PositiveInt] = APIField(