From 07a0093df3ce37bf55cb4f6b62fcb0fd43ced852 Mon Sep 17 00:00:00 2001 From: Fabinatix97 Date: Tue, 25 Feb 2025 10:46:55 +0100 Subject: [PATCH] chore(ZMS-3235): test id anyOf --- zmsentities/schema/process.json | 11 ++++++++--- zmsentities/src/Zmsentities/Apiclient.php | 2 +- zmsentities/src/Zmsentities/Process.php | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/zmsentities/schema/process.json b/zmsentities/schema/process.json index 478145695..071ff3132 100644 --- a/zmsentities/schema/process.json +++ b/zmsentities/schema/process.json @@ -364,9 +364,14 @@ "description": "unix timestamp representing creation of the process" }, "id": { - "type": "number", - "description": "Number is used to identify appointments like on call displays\n", - "minimum": 1000 + "anyOf": [ + { "const": 0 }, + { + "type": "number", + "minimum": 1000 + } + ], + "description": "Number is used to identify appointments like on call displays" }, "lastChange": { "type": "number", diff --git a/zmsentities/src/Zmsentities/Apiclient.php b/zmsentities/src/Zmsentities/Apiclient.php index 08480e3f9..fba558482 100644 --- a/zmsentities/src/Zmsentities/Apiclient.php +++ b/zmsentities/src/Zmsentities/Apiclient.php @@ -11,7 +11,7 @@ class Apiclient extends Schema\Entity public function getDefaults() { return [ - 'clientKey' => 'wMdVa5Nu1seuCRSJxhKl2M3yw8zqaAilPH2Xc2IZs', + 'clientKey' => '', 'shortname' => 'default', ]; } diff --git a/zmsentities/src/Zmsentities/Process.php b/zmsentities/src/Zmsentities/Process.php index 1a619de0c..c1e37864c 100644 --- a/zmsentities/src/Zmsentities/Process.php +++ b/zmsentities/src/Zmsentities/Process.php @@ -42,7 +42,7 @@ public function getDefaults() 'clients' => new Collection\ClientList(), 'createIP' => '', 'createTimestamp' => time(), - 'id' => 1234, + 'id' => 0, 'archiveId' => 0, 'queue' => new Queue(), 'reminderTimestamp' => 0,