]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/RESTHandler.pm
schema_get_type_text: render generic types as <type>
[pve-common.git] / src / PVE / RESTHandler.pm
index 5e46dc3fb85097bb5c24193055a2aecf6aedf219..4b67c614f336c1fc52c1a70d0234847163aa6b95 100644 (file)
@@ -443,7 +443,7 @@ my $get_property_description = sub {
     if ($fileparams && $type eq 'string') {
        foreach my $elem (@$fileparams) {
            if ($name eq $elem) {
-               $type = 'filepath';
+               $type = '<filepath>';
                last;
            }
        }
@@ -466,7 +466,7 @@ my $get_property_description = sub {
        $res .= "`$type` " if $type;
 
        if (defined(my $dv = $phash->{default})) {
-           $res .= "(default=`$dv`)";
+           $res .= "('default =' `$dv`)";
        }
 
        if ($style eq 'config-sub') {