[pdm-devel] [PATCH proxmox-datacenter-manager v2 03/28] pdm-api-types: add CollectionSettings type
Lukas Wagner
l.wagner at proxmox.com
Fri Feb 21 09:27:47 CET 2025
On 2025-02-18 16:26, Wolfgang Bumiller wrote:
>> +
>> +#[api(
>> + properties: {
>> + "collection-interval" : {
>> + optional: true,
>> + default: DEFAULT_COLLECTION_INTERVAL as isize,
>> + minimum: MIN_COLLECTION_INTERVAL as isize,
>> + maximum: MAX_COLLECTION_INTERVAL as isize,
>
> I thought about this the first time around but then forgot again:
>
> Given that it is possible we might change these types (see Stefan's
> patch for proxmox-schema) and because it is much more convenient
> anyway you could use `as _` for these casts.
>
> While I'm usually not a fan of `_` casts - I think this might be okay
> for schema declarations.
>
> (No need for a v3 if there's nothing else...)
>
Ack, I'll send a follow up if nothing else comes up, else I'll fix it in v3.
--
- Lukas
More information about the pdm-devel
mailing list