We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a42c7 commit 1d90d3cCopy full SHA for 1d90d3c
app/schemas/tiles.py
@@ -1,5 +1,5 @@
1
from enum import Enum
2
-from pydantic import BaseModel
+from pydantic import BaseModel, Field
3
from geojson_pydantic import Polygon
4
5
@@ -8,8 +8,14 @@ class GridTypeEnum(str, Enum):
8
9
10
class TileRequest(BaseModel):
11
- aoi: Polygon
12
- grid: GridTypeEnum
+ aoi: Polygon = Field(
+ ...,
13
+ description="Polygon representing the area of interest for which the tiling grid should be calculated",
14
+ )
15
+ grid: GridTypeEnum = Field(
16
17
+ description="Identifier of the grid system that needs to be used to split up the area of interest",
18
19
20
21
# class TileResponse(BaseModel):
0 commit comments