Skip to content

Commit

Permalink
optional legend id (#59)
Browse files Browse the repository at this point in the history
* optional

* new version

* none

* format
  • Loading branch information
marshHawk4 authored Aug 19, 2024
1 parent a8393bc commit d6818a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions cdr_schemas/cdr_responses/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class PolygonExtractionResponse(BaseModel):
default="", description="System version that published this item"
)
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated CDR legend id")
legend_id: Optional[str] = Field(
default=None, description="Associated CDR legend id"
)
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
description="""
Expand Down Expand Up @@ -82,7 +84,7 @@ class PointExtractionResponse(BaseModel):
default="", description="System Version that published this item"
)
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated legend id")
legend_id: Optional[str] = Field(default=None, description="Associated legend id")
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
description="""
Expand Down Expand Up @@ -118,7 +120,7 @@ class LineExtractionResponse(BaseModel):
default="", description="System version that published this item"
)
validated: Optional[bool] = Field(default=None, description="Validated by human")
legend_id: str = Field(default="", description="Associated legend id")
legend_id: Optional[str] = Field(default=None, description="Associated legend id")
projected_feature: List[ProjectedFeature] = Field(
default_factory=list,
description="""
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.3"
version = "0.4.4"
description = "CDR Schemas"
authors = []
readme = "README.md"
Expand Down

0 comments on commit d6818a4

Please sign in to comment.