On 11/6/23 10:22, Fiona Ebner wrote:
Am 03.11.23 um 12:53 schrieb Dominik Csapak:+my $defaultData = { + propertyList => { + type => { description => 'Profile type.' }, + id => { + type => 'string', + description => "The ID of the profile.", + format => 'pve-configid', + },The ID is usually not a property AFAIK. Doesn't this lead to duplication when writing the section config, i.e. type: <ID> id <ID> ? Do we gain anything by having it be a property?
mhm? the id has to be part of the properties, otherwise the generated api with 'createSchema' etc. would not include it. (it isn't always named id, e.g. in the storage plugins it's 'storage') _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
