Die Namen der Eigenschaften waren nicht perfekt.

This commit is contained in:
2021-04-06 19:56:41 +02:00
parent ac99e079ee
commit 4871ff14dc
4 changed files with 20 additions and 17 deletions
+3 -2
View File
@@ -10,10 +10,11 @@ class Api extends Module
{
const FORMAT_TIME = 'string:regex(/\d+:[0-5]\d:[0-5]\d/)';
const FORMAT_DATE = 'string:regex(/\d{4}-\d{2}-\d{2}/)';
const WORKING_HOURS_JSON_FORMAT = [
'date' => 'string:date',
'workingHours' => self::FORMAT_TIME,
'workingDay' => self::FORMAT_DATE,
'workingTime' => self::FORMAT_TIME,
];
const WORKING_HOURS_VIEW_JSON_FORMAT = [