*.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,22 +78,36 @@
|
|||
"Install"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Volume"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Service",
|
||||
"Volume",
|
||||
"Network"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Volume"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Container",
|
||||
"Network",
|
||||
"Service"
|
||||
"Container"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Network"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
@ -102,12 +116,19 @@
|
|||
"Network"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Container"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Service",
|
||||
"Container",
|
||||
"Volume"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"description": "Configuration for a '.container' unit.",
|
||||
|
|
@ -247,9 +268,6 @@
|
|||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"description": "'Volume' configuration section of a unit file.",
|
||||
"required": [
|
||||
"What"
|
||||
],
|
||||
"properties": {
|
||||
"VolumeName": {
|
||||
"description": "Override volume name",
|
||||
|
|
|
|||
|
|
@ -90,33 +90,57 @@
|
|||
"Install"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Mount"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Mount",
|
||||
"Socket"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Socket"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Mount"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Mount",
|
||||
"Service"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Mount"
|
||||
],
|
||||
"not": {
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"Service"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"Service",
|
||||
"Socket"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"description": "Configuration for a '.service' unit.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue