Skip to content

Commit

Permalink
adjust pydantic fields attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 7, 2024
1 parent 7afb188 commit 3bcdb87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stac_model/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


class ModelResult(MLMBaseModel):
shape: List[Union[int, float]] = Field(..., min_items=1)
dim_order: List[str] = Field(..., min_items=1)
shape: List[Union[int, float]] = Field(..., min_length=1)
dim_order: List[str] = Field(..., min_length=1)
data_type: DataType


Expand Down
2 changes: 1 addition & 1 deletion stac_model/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ class Runtime(MLMBaseModel):
accelerator: Optional[AcceleratorType] = Field(default=None)
accelerator_constrained: bool = Field(default=False)
accelerator_summary: Annotated[Optional[str], OmitIfNone] = Field(default=None)
accelerator_count: Annotated[Optional[int], OmitIfNone] = Field(default=None, minimum=1)
accelerator_count: Annotated[Optional[int], OmitIfNone] = Field(default=None, ge=1)

0 comments on commit 3bcdb87

Please sign in to comment.