]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
JSONSchema::check_type: return success (not value)
[pve-common.git] / src / PVE / JSONSchema.pm
index 0737459512ec9c72e1b3d2f0b081c363effec476..936c3cfa7feeea0527ef19e963858374c02db99f 100644 (file)
@@ -678,7 +678,7 @@ sub check_type {
                        return 1;
                    #} elsif ($value =~ m/^(0|false|no|off)$/i) {
                    } elsif ($value eq '0') {
-                       return 0;
+                       return 1; # return success (not value)
                    } else {
                        add_error($errors, $path, "type check ('$type') failed - got '$value'");
                        return undef;