proxmox/proxmox-api-macro
Wolfgang Bumiller 2b3c356ece api-macro: allow declaring an additional-properties field
Object schemas can now declare a field which causes
'additional_properties' to be set to true and the field being ignored
in the schema.

This allows adding a flattened HashMap<String, Value> to gather the
additional unspecified properties.

    #[api(additional_properties: "rest")]
    struct Something {
        #[serde(flatten)]
        rest: HashMap<String, Value>,
    }

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-09-26 12:47:58 +02:00
..
debian api-macro: bump to 1.2.0-1 2024-09-05 14:15:11 +02:00
src api-macro: allow declaring an additional-properties field 2024-09-26 12:47:58 +02:00
tests api-macro: allow declaring an additional-properties field 2024-09-26 12:47:58 +02:00
Cargo.toml tree-wide: unify workspace inherited attributes 2024-09-20 08:42:45 +02:00