LocationGeometry id can be custom location or position id
This commit is contained in:
parent
e31b318b47
commit
73238f6943
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ from pydantic import Field as APIField
|
||||||
from pydantic import PositiveInt
|
from pydantic import PositiveInt
|
||||||
|
|
||||||
from c3nav.api.schema import GeometrySchema
|
from c3nav.api.schema import GeometrySchema
|
||||||
|
from c3nav.mapdata.schemas.model_base import AnyLocationID
|
||||||
|
|
||||||
|
|
||||||
class BoundsSchema(Schema):
|
class BoundsSchema(Schema):
|
||||||
|
@ -18,7 +19,7 @@ class BoundsSchema(Schema):
|
||||||
|
|
||||||
|
|
||||||
class LocationGeometry(Schema):
|
class LocationGeometry(Schema):
|
||||||
id: PositiveInt = APIField(
|
id: AnyLocationID = APIField(
|
||||||
description="ID of the location that the geometry is being queried for",
|
description="ID of the location that the geometry is being queried for",
|
||||||
)
|
)
|
||||||
level: Optional[PositiveInt] = APIField(
|
level: Optional[PositiveInt] = APIField(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue