Skip to content

Commit 241d469

Browse files
update the DataArraySchema to enable variable sized data arrays
1 parent bce4f04 commit 241d469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conSys4Py/datamodels/swe_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class VectorSchema(AnyComponentSchema):
5151

5252
class DataArraySchema(AnyComponentSchema):
5353
type: str = "DataArray"
54-
element_count: int = Field(..., serialization_alias='elementCount') # Should type of Count
54+
element_count: dict | str | CountSchema = Field(..., serialization_alias='elementCount') # Should type of Count
5555
element_type: SerializeAsAny[list[AnyComponentSchema]] = Field(..., serialization_alias='elementType')
5656
encoding: str = Field(...) # TODO: implement an encodings class
5757
values: list = Field(None)

0 commit comments

Comments
 (0)