]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/JSONSchema.pm
update files from pve-common
[pve-client.git] / PVE / APIClient / JSONSchema.pm
index dd0a2c66aa48ef9ef8fb2de064be70d2857124c1..c5f000a4e47e268fdecf3c35a99d255f8d6a3202 100644 (file)
@@ -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 {
@@ -1081,6 +1089,11 @@ my $default_schema_noref = {
            optional => 1,
            description => "This provides the title of the property",
        },
+       renderer => {
+           type => "string",
+           optional => 1,
+           description => "This is used to provide rendering hints to format cli command output.",
+       },
        requires => {
            type => [ "string", "object" ],
            optional => 1,