*.unit.create.meta.json: Fix syntax for not-required checks
not required [A, B] is not right as it means its not required to have both. Instead we want not any-of [ required: a, required: b ]
This commit is contained in:
parent
e7699e0c70
commit
2393299510
2 changed files with 66 additions and 24 deletions
|
|
@ -78,10 +78,17 @@
|
||||||
"Install"
|
"Install"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Service",
|
{
|
||||||
"Volume",
|
"required": [
|
||||||
"Network"
|
"Volume"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Network"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -90,10 +97,17 @@
|
||||||
"Volume"
|
"Volume"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Container",
|
{
|
||||||
"Network",
|
"required": [
|
||||||
"Service"
|
"Container"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Network"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -102,10 +116,17 @@
|
||||||
"Network"
|
"Network"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Service",
|
{
|
||||||
"Container",
|
"required": [
|
||||||
"Volume"
|
"Container"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Volume"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -247,9 +268,6 @@
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "'Volume' configuration section of a unit file.",
|
"description": "'Volume' configuration section of a unit file.",
|
||||||
"required": [
|
|
||||||
"What"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"VolumeName": {
|
"VolumeName": {
|
||||||
"description": "Override volume name",
|
"description": "Override volume name",
|
||||||
|
|
|
||||||
|
|
@ -90,9 +90,17 @@
|
||||||
"Install"
|
"Install"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Mount",
|
{
|
||||||
"Socket"
|
"required": [
|
||||||
|
"Mount"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Socket"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -101,9 +109,17 @@
|
||||||
"Socket"
|
"Socket"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Mount",
|
{
|
||||||
"Service"
|
"required": [
|
||||||
|
"Mount"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Service"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -112,9 +128,17 @@
|
||||||
"Mount"
|
"Mount"
|
||||||
],
|
],
|
||||||
"not": {
|
"not": {
|
||||||
"required": [
|
"anyOf": [
|
||||||
"Service",
|
{
|
||||||
"Socket"
|
"required": [
|
||||||
|
"Service"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"Socket"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue