diff --git a/schema/definitions/0.8.0/schema/fmu_results.json b/schema/definitions/0.8.0/schema/fmu_results.json index 5aaacf727..745ef828c 100644 --- a/schema/definitions/0.8.0/schema/fmu_results.json +++ b/schema/definitions/0.8.0/schema/fmu_results.json @@ -1163,13 +1163,6 @@ "case", "workflow" ], - "$comment": "realization or aggregation or none, never both", - "not": { - "required": [ - "realization", - "aggregation" - ] - }, "properties": { "model": { "$ref": "#/definitions/fmu/model" @@ -1189,6 +1182,23 @@ "aggregation": { "$ref": "#/definitions/fmu/aggregation" } + }, + "$comment": "implementation below allows realization or aggregation or none of them, never both", + "dependencies": { + "aggregation": { + "not": { + "required": [ + "realization" + ] + } + }, + "realization": { + "not": { + "required": [ + "aggregation" + ] + } + } } }, "file": {