Fixed code examples
This commit is contained in:
parent
0a0af89a4d
commit
5d1492b034
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
|
@ -1 +1 @@
|
|||
appwrite avatars getFavicon --url=""
|
||||
appwrite avatars getFavicon --url="https://example.com"
|
|
@ -1 +1 @@
|
|||
appwrite avatars getImage --url="" --width="0" --height="0"
|
||||
appwrite avatars getImage --url="https://example.com" --width="0" --height="0"
|
|
@ -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]"
|
|
@ -1 +1 @@
|
|||
appwrite users create --email="" --password="password" --name="[NAME]"
|
||||
appwrite users create --email="email@example.com" --password="password" --name="[NAME]"
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue