1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Skip validation for mock file upload

This commit is contained in:
Jake Barnby 2023-04-12 14:53:35 +12:00
parent 3b4b412733
commit 3c6f8d2326
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -268,7 +268,7 @@ App::post('/v1/mock/tests/general/upload')
->param('x', '', new Text(100), 'Sample string 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('file', [], new File(), 'Sample file param', false)
->param('file', [], new File(), 'Sample file param', skipValidation: true)
->inject('request')
->inject('response')
->action(function (string $x, int $y, array $z, mixed $file, Request $request, Response $response) {