Skip to content

Commit

Permalink
Use dependencies keyword on aggregation vs realization (#265)
Browse files Browse the repository at this point in the history
* use dependencies keyword on aggregation vs realization
  • Loading branch information
perolavsvendsen authored Nov 3, 2022
1 parent 313efc5 commit e11cd39
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions schema/definitions/0.8.0/schema/fmu_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -1163,13 +1163,6 @@
"case",
"workflow"
],
"$comment": "realization or aggregation or none, never both",
"not": {
"required": [
"realization",
"aggregation"
]
},
"properties": {
"model": {
"$ref": "#/definitions/fmu/model"
Expand All @@ -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": {
Expand Down

0 comments on commit e11cd39

Please sign in to comment.