mirror of https://github.com/docker/compose.git
Refactor ports section of fields schema
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
b85bfce65e
commit
d52508e2b1
|
@ -83,16 +83,8 @@
|
||||||
"ports": {
|
"ports": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"oneOf": [
|
"type": ["string", "number"],
|
||||||
{
|
"format": "ports"
|
||||||
"type": "string",
|
|
||||||
"format": "ports"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "number",
|
|
||||||
"format": "ports"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"uniqueItems": true
|
"uniqueItems": true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue