Update devcontainer schema (#132047)

Part of microsoft/vscode-remote-release#3450
This commit is contained in:
Alex Ross
2021-09-20 15:22:44 +02:00
committed by GitHub
parent 00d20b9da0
commit 12bccfd022
3 changed files with 92 additions and 28 deletions

View File

@@ -14,9 +14,19 @@
},
"forwardPorts": {
"type": "array",
"description": "Ports that are forwarded from the container to the local machine.",
"description": "Ports that are forwarded from the container to the local machine. Can be an integer port number, or a string of the format \"host:port_number\".",
"items": {
"type": "integer"
"oneOf": [
{
"type": "integer",
"maximum": 65535,
"minimum": 0
},
{
"type": "string",
"pattern": "^([a-z0-9\\-]+):(\\d{1,5})$"
}
]
}
},
"portsAttributes": {