Erweitere die Tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Helper;
|
||||
|
||||
// here you can define custom actions
|
||||
@@ -13,8 +14,9 @@ class Api extends Module
|
||||
const FORMAT_DATE = 'string:regex(/\d{4}-\d{2}-\d{2}/)';
|
||||
|
||||
const WORKING_HOURS_JSON_FORMAT = [
|
||||
'workingDay' => self::FORMAT_DATE,
|
||||
'workingTime' => self::FORMAT_TIME,
|
||||
'workingDay' => self::FORMAT_DATE,
|
||||
'workingTime' => self::FORMAT_TIME,
|
||||
'isHomeOffice' => 'boolean',
|
||||
];
|
||||
|
||||
const WORKING_HOURS_VIEW_JSON_FORMAT = [
|
||||
@@ -22,6 +24,7 @@ class Api extends Module
|
||||
"periodDesignation" => "string",
|
||||
"totalHours" => self::FORMAT_TIME,
|
||||
"workingDays" => 'integer:>0',
|
||||
'homeOfficeDays' => 'number:>=0',
|
||||
"overtime" => self::FORMAT_TIME,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user