stages/copy: fix schema for tree urls

The `tree` url does not take a net location because it makes no
sense there since there is only one tree.
This commit is contained in:
Christian Kellner 2021-06-18 17:23:09 +00:00
parent 9470cb6e86
commit 161edb344d

View file

@ -41,9 +41,18 @@ SCHEMA_2 = r"""
"pattern": "^input:\/\/[^\/]+\/"
},
"to": {
"type": "string",
"description": "The destination",
"pattern": "^(tree|mount):\/\/[^\/]+\/"
"oneOf": [
{
"type": "string",
"description": "The destination, if a mount",
"pattern": "^mount:\/\/[^\/]+\/"
},
{
"type": "string",
"description": "The destination, if a tree",
"pattern": "^tree:\/\/\/"
}
]
}
}
}