Skip to content

Commit d2fbb24

Browse files
Merge pull request #4 from Botts-Innovative-Research/3-quickfix-dataarray-element-count
update the DataArraySchema to enable variable sized data arrays
2 parents bce4f04 + 241d469 commit d2fbb24

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)