proxmox/proxmox-schema
Wolfgang Bumiller d48a150835 schema: implement oneOf schema support
A 'oneOf' schema is basically exactly what a rust `enum` is.
Exactly one of the possible values must match the data.

This should ultimately be the base to allow using the
`#[api]` macro on a newtype style enum as well as using this
schema as a configuration for our section config parser.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
2024-02-02 12:06:28 +01:00
..
debian bump schema to 2.0.2-1 2023-11-23 09:16:46 +01:00
src schema: implement oneOf schema support 2024-02-02 12:06:28 +01:00
tests schema: verify property strings w/ new serde code 2023-07-13 16:19:19 +02:00
Cargo.toml bump schema to 2.0.2-1 2023-11-23 09:16:46 +01:00