]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
schema: explicitly set min/max for vmid option
[pve-common.git] / src / PVE / JSONSchema.pm
index 60b02cb19eefb0759999306e4fbe638ea55e270d..7589bbad4e56c93c17e9dfb7af34014ed7a665cb 100644 (file)
@@ -59,8 +59,10 @@ sub get_standard_option {
 
 register_standard_option('pve-vmid', {
     description => "The (unique) ID of the VM.",
-    type => 'integer', format => 'pve-vmid',
-    minimum => 1
+    type => 'integer',
+    format => 'pve-vmid',
+    minimum => 100,
+    maximum => 999_999_999,
 });
 
 register_standard_option('pve-node', {