Skip to content

Commit 3bcdb87

Browse files
committed
adjust pydantic fields attributes
1 parent 7afb188 commit 3bcdb87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stac_model/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88

99
class ModelResult(MLMBaseModel):
10-
shape: List[Union[int, float]] = Field(..., min_items=1)
11-
dim_order: List[str] = Field(..., min_items=1)
10+
shape: List[Union[int, float]] = Field(..., min_length=1)
11+
dim_order: List[str] = Field(..., min_length=1)
1212
data_type: DataType
1313

1414

stac_model/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ class Runtime(MLMBaseModel):
4646
accelerator: Optional[AcceleratorType] = Field(default=None)
4747
accelerator_constrained: bool = Field(default=False)
4848
accelerator_summary: Annotated[Optional[str], OmitIfNone] = Field(default=None)
49-
accelerator_count: Annotated[Optional[int], OmitIfNone] = Field(default=None, minimum=1)
49+
accelerator_count: Annotated[Optional[int], OmitIfNone] = Field(default=None, ge=1)

0 commit comments

Comments
 (0)