Skip to content

Commit

Permalink
Update validated to allow none. (#57)
Browse files Browse the repository at this point in the history
* bool to none

* bool to none

* bump
;
  • Loading branch information
marshHawk4 authored Aug 6, 2024
1 parent 5f9ed9a commit a8393bc
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 @@ -26,7 +26,7 @@ class AreaExtractionResponse(BaseModel):
model_id: str = Field(
default="", description="Model id for the model used to generate this item"
)
validated: bool = Field(default=False, description="Validated by human")
validated: Optional[bool] = Field(default=None, description="Validated by human")
confidence: Optional[float] = None
category: AreaType = Field(
...,
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 @@ -38,7 +38,7 @@ class PolygonExtractionResponse(BaseModel):
system_version: str = Field(
default="", description="System version that published this item"
)
validated: bool = Field(default=False, description="Validated by human")
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated CDR legend id")
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
Expand Down Expand Up @@ -81,7 +81,7 @@ class PointExtractionResponse(BaseModel):
system_version: str = Field(
default="", description="System Version that published this item"
)
validated: bool = Field(default=False, description="Validated by human")
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated legend id")
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
Expand Down Expand Up @@ -117,7 +117,7 @@ class LineExtractionResponse(BaseModel):
system_version: str = Field(
default="", description="System version that published this item"
)
validated: bool = Field(default=False, description="Validated by human")
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated legend id")
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
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 @@ -40,7 +40,7 @@ class LegendItemResponse(BaseModel):
model_id: str = Field(
default="", description="Model id for the model used to generate this item"
)
validated: bool = Field(default=False, description="Validated by human")
validated: Optional[bool] = Field(default=None, description="Validated by human")
confidence: Optional[float] = None
map_unit_age_text: str = Field(default="", description="Age of map unit")
map_unit_lithology: str = Field(default="", description="Map unit lithology")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cdr_schemas"
version = "0.4.2"
version = "0.4.3"
description = "CDR Schemas"
authors = []
readme = "README.md"
Expand Down

0 comments on commit a8393bc

Please sign in to comment.