From 7829989f5e2abfe18afc31bcae2df3c02674f6d5 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 2 Sep 2015 13:31:17 +0200 Subject: [PATCH 1/1] add new property to support bash completions --- src/PVE/JSONSchema.pm | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.39.2