proxmox/proxmox-api-macro/tests
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
..
allof.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
api1.rs router, rest-server, api-macro: rename Streaming api to Serializing 2024-09-05 14:15:11 +02:00
api2.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
ext-schema.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
int-limits.rs api-macro: fix warnings in tests 2024-08-06 14:23:38 +02:00
options.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
section-config.rs api-macro: type-key support for derived enums 2024-08-06 14:14:42 +02:00
types.rs api-macro: allow declaring an additional-properties field 2024-09-26 12:47:58 +02:00
updater.rs api-macro: handle renames in updater derive 2024-08-06 14:14:42 +02:00