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:
parent
9470cb6e86
commit
161edb344d
1 changed files with 12 additions and 3 deletions
|
|
@ -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:\/\/\/"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue