add new property to support bash completions
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 2 Sep 2015 11:31:17 +0000 (13:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 2 Sep 2015 11:31:17 +0000 (13:31 +0200)
src/PVE/JSONSchema.pm

index c925ecb..ed1813d 100644 (file)
@@ -817,6 +817,11 @@ my $default_schema_noref = {
            optional => 1,
            description => "This indicates the default for the instance property."
        },
+        completion => {
+           type => 'coderef',
+           description => "Bash completion function. This function should return a list of possible values.",
+           optional => 1,
+        },
         disallow => {
            type => "object",
            optional => 1,