From 7f3b4a94e699df50f0afbd06b792b7005dd86bae Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 18 May 2022 15:39:57 +0200 Subject: [PATCH] api types: verify job: allow outdated-afer == 0 for backward compat We can have those in existing verify jobs configs, and that'd break stuff. So, even while the "bad" commit got released only recently with `2.1.6-1` (14 April 2022), we still need to cope with those that used it, and using some serde parser magic to transform on read only is hard here due to section config (json-value and verify currently happen before we can do anything about it) Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/jobs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index 0477f9b8..1fda49c5 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -155,8 +155,8 @@ pub const IGNORE_VERIFIED_BACKUPS_SCHEMA: Schema = BooleanSchema::new( .schema(); pub const VERIFICATION_OUTDATED_AFTER_SCHEMA: Schema = - IntegerSchema::new("Days after that a verification becomes outdated. (0 means always)") - .minimum(1) + IntegerSchema::new("Days after that a verification becomes outdated. (0 is deprecated)'") + .minimum(0) .schema(); #[api(