Fix ports validation

I had misunderstood the valid formats allowed for ports. They must
always be in a list.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
Mazz Mosley 2015-08-12 15:19:28 +01:00
commit 5e2ecff8a1
2 changed files with 16 additions and 18 deletions

View file

@ -75,22 +75,20 @@
"pid": {"type": "string"},
"ports": {
"oneOf": [
{
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"format": "ports"
},
{
"type": "string",
"format": "ports"
},
{
"type": "number",
"format": "ports"
}
]
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"format": "ports"
},
{
"type": "number",
"format": "ports"
}
]
},
"uniqueItems": true
},
"privileged": {"type": "string"},