Skip to content

Commit

Permalink
Default value for values should be []
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVanSchayck committed Nov 14, 2024
1 parent 6df19b7 commit 4a0ecc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/covjson_pydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NdArray(CovJsonBaseModel, Generic[NdArrayTypeT], extra="allow"):
dataType: DataType # noqa: N815
axisNames: Optional[List[str]] = None # noqa: N815
shape: Optional[List[int]] = None
values: List[Optional[NdArrayTypeT]] = None
values: List[Optional[NdArrayTypeT]] = []

@model_validator(mode="after")
def check_data_type(self):
Expand Down

0 comments on commit 4a0ecc1

Please sign in to comment.