From 241d4696a16f1696a97c83106c6b601226ca79b8 Mon Sep 17 00:00:00 2001 From: Ian Patterson Date: Tue, 18 Mar 2025 17:57:30 -0500 Subject: [PATCH] update the DataArraySchema to enable variable sized data arrays --- conSys4Py/datamodels/swe_components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conSys4Py/datamodels/swe_components.py b/conSys4Py/datamodels/swe_components.py index f0e9d29..5ab24c1 100644 --- a/conSys4Py/datamodels/swe_components.py +++ b/conSys4Py/datamodels/swe_components.py @@ -51,7 +51,7 @@ class VectorSchema(AnyComponentSchema): class DataArraySchema(AnyComponentSchema): type: str = "DataArray" - element_count: int = Field(..., serialization_alias='elementCount') # Should type of Count + element_count: dict | str | CountSchema = Field(..., serialization_alias='elementCount') # Should type of Count element_type: SerializeAsAny[list[AnyComponentSchema]] = Field(..., serialization_alias='elementType') encoding: str = Field(...) # TODO: implement an encodings class values: list = Field(None)