Hit send too early when editing On 4/11/25 13:12, Stefan Hanreich wrote:
> Imo, #2 and #3 seem like the contenders. #3 is what we use for zones / > vnets / subnets, and it is . #2 makes API definitions a lot nicer, [..] it is established in SDN already and works there. > since we have exactly one schema per API endpoint, which also makes > the generated API types in Rust a lot nicer. With #3 we currently > generate two structs where basically every field is an Option<T>. The > solution for this could be using oneOf across the whole API, but afaik > that is not implemented in Schema2Rust currently. Alternatively, we > could pop our own abstraction models on top of the generated types and > convert from / to them when using the API in PDM, but the real > solution is implementing oneOf support in Schema2Rust. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel