1
0
Fork 0
mirror of synced 2024-05-20 04:32:37 +12:00

Fixed code examples

This commit is contained in:
Eldad Fux 2021-04-21 09:54:28 +03:00
parent 0a0af89a4d
commit 5d1492b034
9 changed files with 11 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
appwrite avatars getFavicon --url=""
appwrite avatars getFavicon --url="https://example.com"

View file

@ -1 +1 @@
appwrite avatars getImage --url="" --width="0" --height="0"
appwrite avatars getImage --url="https://example.com" --width="0" --height="0"

View file

@ -1 +1 @@
appwrite teams createMembership --teamId="[TEAM_ID]" --email="" --roles="" --url="https://example.com" --name="[NAME]"
appwrite teams createMembership --teamId="[TEAM_ID]" --email="email@example.com" --roles="" --url="https://example.com" --name="[NAME]"

View file

@ -1 +1 @@
appwrite users create --email="" --password="password" --name="[NAME]"
appwrite users create --email="email@example.com" --password="password" --name="[NAME]"

View file

@ -205,12 +205,12 @@ class OpenAPI3 extends Format
$node['schema']['type'] = 'string';
$node['schema']['x-example'] = '['.\strtoupper(Template::fromCamelCaseToSnake($node['name'])).']';
break;
case 'Utopia\Validator\Email':
case 'Appwrite\Network\Validator\Email':
$node['schema']['type'] = 'string';
$node['schema']['format'] = 'email';
$node['schema']['x-example'] = 'email@example.com';
break;
case 'Utopia\Validator\URL':
case 'Appwrite\Network\Validator\URL':
$node['schema']['type'] = 'string';
$node['schema']['format'] = 'url';
$node['schema']['x-example'] = 'https://example.com';

View file

@ -202,12 +202,12 @@ class Swagger2 extends Format
$node['type'] = 'string';
$node['x-example'] = '['.\strtoupper(Template::fromCamelCaseToSnake($node['name'])).']';
break;
case 'Utopia\Validator\Email':
case 'Appwrite\Network\Validator\Email':
$node['type'] = 'string';
$node['format'] = 'email';
$node['x-example'] = 'email@example.com';
break;
case 'Utopia\Validator\URL':
case 'Appwrite\Network\Validator\URL':
$node['type'] = 'string';
$node['format'] = 'url';
$node['x-example'] = 'https://example.com';