Skip to content

Commit a28887c

Browse files
committed
implemented VTimestamp
1 parent 8c358c4 commit a28887c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/helpers/MetaFormats/Validators/VTimestamp.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
use App\Helpers\MetaFormats\PhpTypes;
66
use App\Helpers\MetaFormats\PrimitiveFormatValidators;
77

8-
class VTimestamp
8+
/**
9+
* Expects unix timestamps.
10+
*/
11+
class VTimestamp extends VInt
912
{
10-
public const SWAGGER_TYPE = "string";
11-
12-
public function validate(mixed $value): bool
13+
public function getExampleValue(): string
1314
{
14-
///TODO: check if timestamp
15-
return true;
15+
return "1740135333";
1616
}
1717
}

0 commit comments

Comments
 (0)