Commit 92d29865 authored by Jérome Perrin's avatar Jérome Perrin

erp5: include default port values in schema definitions

tcpv4-port is currently marked as required, define default ports for
convenience.
parent 844f6a7a
...@@ -192,16 +192,34 @@ ...@@ -192,16 +192,34 @@
}, },
"kumofs": { "kumofs": {
"description": "Persistent memcached service", "description": "Persistent memcached service",
"additionalProperties": { "allOf": [
"$ref": "./instance-kumofs-schema.json" {
}, "$ref": "./instance-kumofs-schema.json"
},
{
"properties": {
"tcpv4-port": {
"default": 2000
}
}
}
],
"type": "object" "type": "object"
}, },
"memcached": { "memcached": {
"description": "Volatile memcached service", "description": "Volatile memcached service",
"additionalProperties": { "allOf": [
"$ref": "./instance-kumofs-schema.json" {
}, "$ref": "./instance-kumofs-schema.json"
},
{
"properties": {
"tcpv4-port": {
"default": 2010
}
}
}
],
"type": "object" "type": "object"
}, },
"cloudooo-url": { "cloudooo-url": {
...@@ -216,16 +234,34 @@ ...@@ -216,16 +234,34 @@
}, },
"smtp": { "smtp": {
"description": "Mail queuing and relay service", "description": "Mail queuing and relay service",
"additionalProperties": { "allOf": [
"$ref": "./instance-smtp-schema.json" {
}, "$ref": "./instance-smtp-schema.json"
},
{
"properties": {
"tcpv4-port": {
"default": 2010
}
}
}
],
"type": "object" "type": "object"
}, },
"mariadb": { "mariadb": {
"description": "Relational database service", "description": "Relational database service",
"additionalProperties": { "allOf": [
"$ref": "./instance-mariadb-schema.json" {
}, "$ref": "./instance-mariadb-schema.json"
},
{
"properties": {
"tcpv4-port": {
"default": 2099
}
}
}
],
"type": "object" "type": "object"
}, },
"zodb-zeo": { "zodb-zeo": {
......
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