proxmox/proxmox-api-macro/src
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
..
api api-macro: allow declaring an additional-properties field 2024-09-26 12:47:58 +02:00
lib.rs tree-wide: enable doc_cfg and doc_auto_cfg for docs 2024-07-02 11:59:53 +02:00
serde.rs section-config, api-macro: add SectionConfig enum support 2024-08-06 14:14:42 +02:00
types.rs switch from failure to anyhow 2020-04-17 18:34:21 +02:00
updater.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
util.rs fix typos in rust api documentation 2024-07-22 08:49:42 +02:00