diff --git a/schema/definitions/0.8.0/schema/fmu_meta.json b/schema/definitions/0.8.0/schema/fmu_meta.json index 5e893f67d..fc5567482 100644 --- a/schema/definitions/0.8.0/schema/fmu_meta.json +++ b/schema/definitions/0.8.0/schema/fmu_meta.json @@ -738,6 +738,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -1370,6 +1392,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -1630,6 +1674,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -1932,6 +1998,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -2211,6 +2299,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -2591,6 +2701,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -2868,6 +3000,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -3184,6 +3338,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -3472,6 +3648,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -3744,6 +3942,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -4024,6 +4244,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -4284,6 +4526,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -4592,6 +4856,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -4852,6 +5138,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -5167,6 +5475,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -5427,6 +5757,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -5778,6 +6130,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -6149,6 +6523,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -6600,6 +6996,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -6888,6 +7306,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -7148,6 +7588,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -7466,6 +7928,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -7739,6 +8223,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -7999,6 +8505,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { @@ -8259,6 +8787,28 @@ "default": null, "title": "Stratigraphic Alias" }, + "table_index": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Column names in the table which can be used for indexing", + "examples": [ + [ + "ZONE", + "REGION" + ] + ], + "title": "Table Index" + }, "tagname": { "anyOf": [ { diff --git a/src/fmu/dataio/datastructure/meta/content.py b/src/fmu/dataio/datastructure/meta/content.py index 82f76ec2f..586d97ac8 100644 --- a/src/fmu/dataio/datastructure/meta/content.py +++ b/src/fmu/dataio/datastructure/meta/content.py @@ -206,6 +206,12 @@ class Content(BaseModel): default=None, examples=["depth"], ) + # Only valid for contents with class table + table_index: Optional[List[str]] = Field( + default=None, + description="Column names in the table which can be used for indexing", + examples=[["ZONE", "REGION"]], + ) # Both must be set, or none. base: Optional[Layer] = None