]> git.proxmox.com Git - pve-common.git/commit
schema: explicitly set min/max for vmid option
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 16 Jun 2023 07:35:37 +0000 (09:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Jun 2023 08:21:47 +0000 (10:21 +0200)
commitbca617373a371b9ed08be1ba32386afcce86bc33
tree6f1e240212190559e1fa4fb803d848ebced506cd
parentbc24aad31684d2cb731a940d5ed076ee37d70d38
schema: explicitly set min/max for vmid option

The associated pve_verify_vmid() method already restricts the value
to this range, but this wouldn't be visible in the API viewer for
example [0].

The verify method is also called by qemu-server's qmextract, so it's
not possible to just drop the method right now.

[0]: https://forum.proxmox.com/threads/128845/post-564526

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/JSONSchema.pm