diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/Specification/Format/OpenAPI3.php index c7a9db0524..91bddc23a5 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/Specification/Format/OpenAPI3.php @@ -304,7 +304,7 @@ class OpenAPI3 extends Format case 'Utopia\Database\Validator\DatetimeValidator': $node['schema']['type'] = $validator->getType(); $node['schema']['format'] = 'datetime'; - $node['schema']['x-example'] = '2022-06-15T13:45:30.496'; + $node['schema']['x-example'] = Model::TYPE_DATETIME_EXAMPLE; break; case 'Appwrite\Network\Validator\Email': $node['schema']['type'] = $validator->getType(); diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 1df2e38273..bcecea614a 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -300,7 +300,7 @@ class Swagger2 extends Format case 'Utopia\Database\Validator\DatetimeValidator': $node['type'] = $validator->getType(); $node['format'] = 'datetime'; - $node['x-example'] = '2022-06-15T13:45:30.496'; + $node['x-example'] = Model::TYPE_DATETIME_EXAMPLE; break; case 'Appwrite\Network\Validator\Email': $node['type'] = $validator->getType();