diff --git a/schema/definitions/0.8.0/schema/fmu_results.json b/schema/definitions/0.8.0/schema/fmu_results.json index 9017d29c6..4fcea0b2d 100644 --- a/schema/definitions/0.8.0/schema/fmu_results.json +++ b/schema/definitions/0.8.0/schema/fmu_results.json @@ -7594,20 +7594,34 @@ "type": "array" }, "num_columns": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], "examples": [ 1, 9999 ], - "title": "Num Columns", - "type": "integer" + "title": "Num Columns" }, "num_rows": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], "examples": [ 1, 9999 ], - "title": "Num Rows", - "type": "integer" + "title": "Num Rows" }, "size": { "examples": [ diff --git a/src/fmu/dataio/_model/specification.py b/src/fmu/dataio/_model/specification.py index fcc8e8507..054c7e794 100644 --- a/src/fmu/dataio/_model/specification.py +++ b/src/fmu/dataio/_model/specification.py @@ -65,10 +65,10 @@ class TableSpecification(BaseModel): columns: List[str] """List of columns present in a table.""" - num_columns: int = Field(examples=[1, 9999]) + num_columns: Optional[int] = Field(examples=[1, 9999]) """The number of columns in a table.""" - num_rows: int = Field(examples=[1, 9999]) + num_rows: Optional[int] = Field(examples=[1, 9999]) """The number of rows in a table..""" size: int = Field(examples=[1, 9999])