From: Dietmar Maurer Date: Mon, 2 Jul 2018 11:34:16 +0000 (+0200) Subject: JSONSchema: register new standard option 'pve-output-format' X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=ac15655f452fbcdfa44ffdd83822bbe353cd1767;ds=sidebyside JSONSchema: register new standard option 'pve-output-format' Signed-off-by: Dietmar Maurer --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 793ec60..aa82167 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -105,6 +105,14 @@ register_standard_option('fingerprint-sha256', { pattern => '([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}', }); +register_standard_option('pve-output-format', { + type => 'string', + description => 'Output format.', + enum => [ 'text', 'plain', 'json' ], + optional => 1, + default => 'text', +}); + my $format_list = {}; sub register_format {