]> git.proxmox.com Git - pve-common.git/commit
schema: check format: parse list formats as arrays
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 18 Mar 2021 08:44:18 +0000 (09:44 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 3 May 2021 11:05:20 +0000 (13:05 +0200)
commit31d4beb47c3639bd7f6873f903569db06606a51b
treeecacca9211e98d87a7a9527724e0b45e71108332
parent91477acefb18492ee2d4aeee748d42a379953e7b
schema: check format: parse list formats as arrays

Previously, the returned value would be only the last element or undef in case
of an empty list. There's only a handful of callers of check_format() that look
at the return value and AFAICT none of the exisitng ones is for a -list format.
But best to avoid any future surprises.

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