1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Merge pull request #3735 from appwrite/update-swagger-default-datetime

Update specs datetime example
This commit is contained in:
Christy Jacob 2022-08-30 12:47:30 +02:00 committed by GitHub
commit fc3376cbe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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();