From ac15655f452fbcdfa44ffdd83822bbe353cd1767 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Jul 2018 13:34:16 +0200 Subject: [PATCH 1/1] JSONSchema: register new standard option 'pve-output-format' Signed-off-by: Dietmar Maurer --- src/PVE/JSONSchema.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { -- 2.39.2