[pve-devel] applied: [PATCH common] schema: explicitly set min/max for vmid option

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 16 12:40:37 CEST 2023


Am 16/06/2023 um 11:01 schrieb Fiona Ebner:
>> let's see if we ever used values < 100 as some special thingy somwhere 😜
>> (if, those things should probably just switch to another format)
>
> Even if, the problem is limited to cases where the format verification
> wouldn't be done, but the min/max limits would apply. Can that even happen?

I really don't expect it, would need to manually extract the API schema
from the format and then use that to parse something – especially for such
simple formats (i.e., no format string composed of multiple properties)
I'd find that highly surprising; just saw a bit odd (perl) code already
to dare to rule the possibility of this out ;-)





More information about the pve-devel mailing list