]> git.proxmox.com Git - proxmox.git/commit
api-macro: forbid flattened fields
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 18 Dec 2020 11:25:55 +0000 (12:25 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 22 Dec 2020 06:18:46 +0000 (07:18 +0100)
commit6b5bf36989ad7c4325fa5c2d805adb539bb3bcca
treef8351881ed72d4d38239adb0ddb68ea6495390d4
parentfbc9be471ba81f64d52f08c8c1ba5c3535b9c311
api-macro: forbid flattened fields

They don't appear in the json data structure and therefore
should not be named separately in the schema. Structs with
flattened fields will become an `AllOf` schema instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api-macro/src/api/structs.rs