diff --git a/stages/org.osbuild.copy b/stages/org.osbuild.copy index cc477d77..15e3cd7d 100755 --- a/stages/org.osbuild.copy +++ b/stages/org.osbuild.copy @@ -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:\/\/\/" + } + ] } } }