Skip to content

Commit

Permalink
chore(ZMS-3235): test id anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabinatix97 committed Feb 25, 2025
1 parent 04347d4 commit 07a0093
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions zmsentities/schema/process.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/src/Zmsentities/Apiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Apiclient extends Schema\Entity
public function getDefaults()
{
return [
'clientKey' => 'wMdVa5Nu1seuCRSJxhKl2M3yw8zqaAilPH2Xc2IZs',
'clientKey' => '',
'shortname' => 'default',
];
}
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/src/Zmsentities/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 07a0093

Please sign in to comment.