Skip to content

Commit

Permalink
removed optional
Browse files Browse the repository at this point in the history
  • Loading branch information
marshHawk4 committed Jun 24, 2024
1 parent f9c7a57 commit fe76f6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cdr_schemas/cdr_responses/area_extractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AreaExtractionResponse(BaseModel):
reference_id: Union[str, None] = Field(
default=None, description="Legend id of older version of this legend item."
)
px_bbox: Optional[List[Union[float, int]]] = Field(
px_bbox: List[Union[float, int]] = Field(
default_factory=list,
description="""The rough 2 point bounding box of the item.
Format is expected to be [x1,y1,x2,y2].""",
Expand Down
6 changes: 3 additions & 3 deletions cdr_schemas/cdr_responses/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ProjectedFeature(BaseModel):
class PolygonExtractionResponse(BaseModel):
polygon_id: str = Field(default="", description="CDR polygon id")
cog_id: str = Field(default="", description="Cog id")
px_bbox: Optional[List[Union[float, int]]] = Field(
px_bbox: List[Union[float, int]] = Field(
default_factory=list,
description="""The rough 2 point bounding box of the item.
Format is expected to be [x1,y1,x2,y2].""",
Expand Down Expand Up @@ -57,7 +57,7 @@ class PolygonExtractionResponse(BaseModel):
class PointExtractionResponse(BaseModel):
point_id: str = Field(default="", description="CDR point id")
cog_id: str = Field(default="", description="Cog id")
px_bbox: Optional[List[Union[float, int]]] = Field(
px_bbox: List[Union[float, int]] = Field(
default_factory=list,
description="""The rough 2 point bounding box of the item.
Format is expected to be [x1,y1,x2,y2].""",
Expand Down Expand Up @@ -100,7 +100,7 @@ class PointExtractionResponse(BaseModel):
class LineExtractionResponse(BaseModel):
line_id: str = Field(default="", description="CDR line id")
cog_id: str = Field(default="", description="Cog id")
px_bbox: Optional[List[Union[float, int]]] = Field(
px_bbox: List[Union[float, int]] = Field(
default_factory=list,
description="""The rough 2 point bounding box of the item.
Format is expected to be [x1,y1,x2,y2].""",
Expand Down
2 changes: 1 addition & 1 deletion cdr_schemas/cdr_responses/legend_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LegendItemResponse(BaseModel):
default="",
description="If category of type polygon this can be filled in with pattern type",
)
px_bbox: Optional[List[Union[float, int]]] = Field(
px_bbox: List[Union[float, int]] = Field(
default_factory=list,
description="""The rough 2 point bounding box of the item.
Format is expected to be [x1,y1,x2,y2].""",
Expand Down
2 changes: 1 addition & 1 deletion cdr_schemas/features/point_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PointProperties(BaseModel):
)

# Point Properties
bbox: Optional[List[Union[float, int]]] = Field(
bbox: List[Union[float, int]] = Field(
default=None,
description="""The extacted 2 point bounding box of the point item.
Format is expected to be [x1,y1,x2,y2] where the top left
Expand Down

0 comments on commit fe76f6c

Please sign in to comment.