On Sat, 14 Feb 2026 09:10:20 +0100, Dietmar Maurer wrote:
> Introduce a new CommaSeparatedList<T> wrapper type that provides
> schema-aware serialization and deserialization of comma-separated
> values, similar to PropertyString but designed for list/array types.
>
> Key components:
> - CommaSeparatedListSchema trait: Provides the static ARRAY_SCHEMA
> required for (de)serialization (workaround for unstable generic
> const items in Rust)
> - CommaSeparatedList<T>: A transparent Vec<T> newtype with Deref/
> DerefMut implementations for ergonomic access
>
> [...]
Applied, thanks!
Note that I made some opinionated follow-up commits on top of this, the main
visible change for you is making the module private and exporting
CommaSeparatedList and Co directly at the top-level proxmox-schema lib.
I also export PropertyString now for consitency, but kept that module public
for the time being to avoid compilation errors.
I also added a few more tests for edge cases, and there I uncovered that,
unlike the module rust doc-comment suggested, validation is currently only done
for deserialization, but not serialization.
That is also the main reason for why I did not yet bump proxmox-schema, as it
would be good to have a short in person discussion if that's really the
behavior we want to have here.
[1/1] schema: add CommaSeparatedList<T> wrapper type for comma-separated values
commit: a9fa19c4c7eb97b101add1bce8edcf21292dcc49