Commit 9c356374 authored by Julien Muchembled's avatar Julien Muchembled

ERP5: "cluster" is not required in NEO parameters

parent 036e518b
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
}, },
"server": { "server": {
"description": "Instantiate a server. If missing, 'storage-dict' must contain the necessary properties to mount the ZODB. Partitions references are 'neo-0', 'neo-1', ...", "description": "Instantiate a server. If missing, 'storage-dict' must contain the necessary properties to mount the ZODB. Partitions references are 'neo-0', 'neo-1', ...",
"$ref": "../neoppod/instance-neo-input-schema.json" "$ref": "../neoppod/instance-neo-input-schema.json#/definitions/neo-cluster"
} }
} }
} }
......
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.", "description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.",
"definitions": {
"neo-cluster": {
"additionalProperties": false, "additionalProperties": false,
"required": [
"cluster"
],
"properties": { "properties": {
"cluster": { "cluster": {
"description": "Cluster unique identifier. Your last line of defense against mixing up NEO clusters and corrupting your data. Choose a unique value for each of your cluster. Space not allowed.", "description": "Cluster unique identifier. Your last line of defense against mixing up NEO clusters and corrupting your data. Choose a unique value for each of your cluster. Space not allowed.",
...@@ -149,7 +148,7 @@ ...@@ -149,7 +148,7 @@
{ {
"allOf": [ "allOf": [
{ {
"$ref": "#/properties/node" "$ref": "#/definitions/neo-cluster/properties/node"
}, },
{ {
"description": "Override value (parameters for maching nodes)." "description": "Override value (parameters for maching nodes)."
...@@ -163,4 +162,16 @@ ...@@ -163,4 +162,16 @@
} }
}, },
"type": "object" "type": "object"
}
},
"allOf": [
{
"$ref": "#/definitions/neo-cluster"
},
{
"required": [
"cluster"
]
}
]
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment