From: Dietmar Maurer Date: Wed, 2 Sep 2015 11:31:17 +0000 (+0200) Subject: add new property to support bash completions X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=7829989f5e2abfe18afc31bcae2df3c02674f6d5 add new property to support bash completions --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index c925ecb..ed1813d 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -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,