Merge pull request #5347 from appwrite/fix-mock-file-upload
Skip validation for mock file upload
This commit is contained in:
commit
927c2a2988
16 changed files with 42 additions and 19 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
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
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
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
|
@ -268,7 +268,7 @@ App::post('/v1/mock/tests/general/upload')
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Integer(true), 'Sample numeric param')
|
->param('y', '', new Integer(true), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Sample array param')
|
||||||
->param('file', [], new File(), 'Sample file param', false)
|
->param('file', [], new File(), 'Sample file param', skipValidation: true)
|
||||||
->inject('request')
|
->inject('request')
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->action(function (string $x, int $y, array $z, mixed $file, Request $request, Response $response) {
|
->action(function (string $x, int $y, array $z, mixed $file, Request $request, Response $response) {
|
||||||
|
|
12
composer.lock
generated
12
composer.lock
generated
|
@ -3037,16 +3037,16 @@
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "0.32.0",
|
"version": "0.32.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||||
"reference": "2ac74d549e512b84d1b03104cd6ff0e7f8664fc4"
|
"reference": "ba1d7afd57e3baef06c04ce6abc26f79310146df"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/2ac74d549e512b84d1b03104cd6ff0e7f8664fc4",
|
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/ba1d7afd57e3baef06c04ce6abc26f79310146df",
|
||||||
"reference": "2ac74d549e512b84d1b03104cd6ff0e7f8664fc4",
|
"reference": "ba1d7afd57e3baef06c04ce6abc26f79310146df",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -3082,9 +3082,9 @@
|
||||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.32.0"
|
"source": "https://github.com/appwrite/sdk-generator/tree/0.32.1"
|
||||||
},
|
},
|
||||||
"time": "2023-04-11T08:53:05+00:00"
|
"time": "2023-04-12T04:43:07+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/deprecations",
|
"name": "doctrine/deprecations",
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
## 7.3.0
|
||||||
|
|
||||||
|
* Improve helper classes
|
||||||
|
* Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
|
||||||
|
* Added relationships support
|
||||||
|
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
|
||||||
|
|
||||||
## 7.2.0
|
## 7.2.0
|
||||||
|
|
||||||
* Support for GraphQL
|
* Support for GraphQL
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
## 8.3.0
|
||||||
|
|
||||||
|
* Fix: back navigation bringing back web browser after OAuth session creation
|
||||||
|
* Update: Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
|
||||||
|
* Added relationships support
|
||||||
|
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
|
||||||
|
|
||||||
|
## 8.2.2
|
||||||
|
|
||||||
|
* Fix: notify callback when websocket closes [#604](https://github.com/appwrite/sdk-generator/pull/604)
|
||||||
|
|
||||||
|
## 8.2.1
|
||||||
|
|
||||||
|
* Fix OAuth on web
|
||||||
|
* Improve helper classes
|
||||||
|
|
||||||
## 8.2.0
|
## 8.2.0
|
||||||
|
|
||||||
* Support for GraphQL
|
* Support for GraphQL
|
||||||
|
|
Loading…
Reference in a new issue