[yew-devel] [PATCH yew-comp] delete_empty_values: use array instead of string-list

Hannes Laimer h.laimer at proxmox.com
Wed Oct 29 18:35:28 CET 2025


PVE does accept arrays since [1], and with [2] PDM expects arrays.

[1] pve-common 69d9edcc ("section config: implement array support")
[2] proxmox bd8eca6b ("pve-api-types: schema2rust: generate arrays for types with format `-list`")

Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
This was somewhat recently changed to a string-list, but with the recent
change in the PVE type generation we need an actual array here.

 src/form/mod.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/form/mod.rs b/src/form/mod.rs
index 6a92a90..0c23053 100644
--- a/src/form/mod.rs
+++ b/src/form/mod.rs
@@ -44,7 +44,7 @@ pub fn delete_empty_values(record: &Value, param_list: &[&str], delete_undefined
     }
 
     if !delete.is_empty() {
-        new["delete"] = delete.join(",").into();
+        new["delete"] = delete.into();
     }
 
     new
-- 
2.47.3





More information about the yew-devel mailing list