* [yew-devel] [PATCH yew-comp] delete_empty_values: use array instead of string-list
@ 2025-10-29 17:35 Hannes Laimer
0 siblings, 0 replies; only message in thread
From: Hannes Laimer @ 2025-10-29 17:35 UTC (permalink / raw)
To: yew-devel
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@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
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-29 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-29 17:35 [yew-devel] [PATCH yew-comp] delete_empty_values: use array instead of string-list Hannes Laimer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.