Commit 844f6a7a authored by Jérome Perrin's avatar Jérome Perrin

erp5: put parameter schema definitions in separate profiles

Individual profiles (such as instance-mariadb-schema.json) also needs to
be valid when used directly, but the profiles where written in a way
that definitions only resolve when schemas are extended
instance-erp5-input-schema.json schema.
parent 74e24013
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
"additionalProperties": false, "additionalProperties": false,
"definitions": { "definitions": {
"tcpv4port": { "tcpv4port": {
"minimum": 0, "$ref": "./schemas-definitions.json#/tcpv4port"
"maximum": 65535,
"type": "integer"
} }
}, },
"properties": { "properties": {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"tcpv4-port": { "tcpv4-port": {
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/tcpv4port" "$ref": "./schemas-definitions.json#/tcpv4port"
}, },
{ {
"description": "Start allocating ports at this value, going upward" "description": "Start allocating ports at this value, going upward"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"tcpv4-port": { "tcpv4-port": {
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/tcpv4port" "$ref": "./schemas-definitions.json#/tcpv4port"
}, },
{ {
"description": "Start allocating ports at this value, going downward" "description": "Start allocating ports at this value, going downward"
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"extends": "./schema-definitions.json#",
"required": [ "required": [
"tcpv4-port" "tcpv4-port"
], ],
...@@ -9,7 +8,7 @@ ...@@ -9,7 +8,7 @@
"tcpv4-port": { "tcpv4-port": {
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/tcpv4port" "$ref": "./schemas-definitions.json#/tcpv4port"
}, },
{ {
"description": "Start allocating ports at this value, going upward" "description": "Start allocating ports at this value, going upward"
......
{
"$schema": "http://json-schema.org/draft-07/schema#",
"tcpv4port": {
"minimum": 0,
"maximum": 65535,
"type": "integer"
}
}
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