Commit 69593b36 authored by Jérome Perrin's avatar Jérome Perrin

software/kvm: fix json schemas

string.format must be a string according to
https://json-schema.org/understanding-json-schema/reference/string.html#format

I guess the previous validator was wrong.
parent ac3df2bf
...@@ -368,10 +368,16 @@ ...@@ -368,10 +368,16 @@
"title": "NBD hostname or IP", "title": "NBD hostname or IP",
"description": "hostname (or IP) of the NBD server containing the boot image.", "description": "hostname (or IP) of the NBD server containing the boot image.",
"type": "string", "type": "string",
"format": [ "oneOf": [
"host-name", {
"ip-address", "format": "hostname"
"ipv6" },
{
"format": "ipv4"
},
{
"format": "ipv6"
}
], ],
"default": "debian.nbd.vifib.net" "default": "debian.nbd.vifib.net"
}, },
......
...@@ -172,10 +172,16 @@ ...@@ -172,10 +172,16 @@
"title": "NBD hostname", "title": "NBD hostname",
"description": "hostname (or IP) of the NBD server containing the boot image.", "description": "hostname (or IP) of the NBD server containing the boot image.",
"type": "string", "type": "string",
"format": [ "oneOf": [
"host-name", {
"ip-address", "format": "hostname"
"ipv6" },
{
"format": "ipv4"
},
{
"format": "ipv6"
}
], ],
"default": "debian.nbd.vifib.net" "default": "debian.nbd.vifib.net"
}, },
...@@ -191,10 +197,16 @@ ...@@ -191,10 +197,16 @@
"title": "Second NBD hostname", "title": "Second NBD hostname",
"description": "hostname (or IP) of the second NBD server (containing drivers for example).", "description": "hostname (or IP) of the second NBD server (containing drivers for example).",
"type": "string", "type": "string",
"format": [ "oneOf": [
"host-name", {
"ip-address", "format": "hostname"
"ipv6" },
{
"format": "ipv4"
},
{
"format": "ipv6"
}
] ]
}, },
"nbd2-port": { "nbd2-port": {
......
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