Merge remote-tracking branch 'origin/5.3.x' into 6.0.x

This commit is contained in:
William Cheng
2021-07-12 17:11:35 +08:00
3874 changed files with 120282 additions and 21640 deletions

View File

@@ -1 +1,5 @@
6.0.0-SNAPSHOT
<<<<<<< HEAD
6.0.0-SNAPSHOT
=======
5.3.0-SNAPSHOT
>>>>>>> origin/5.3.x

View File

@@ -228,6 +228,30 @@ class FakeController extends Controller
return response('How about implementing testGroupParameters as a delete method ?');
}
/**
* Operation testBodyWithBinary
*
* .
*
*
* @return Http response
*/
public function testBodyWithBinary()
{
$input = Request::all();
//path params validation
//not path params validation
if (!isset($input['body'])) {
throw new \InvalidArgumentException('Missing the required parameter $body when calling testBodyWithBinary');
}
$body = $input['body'];
return response('How about implementing testBodyWithBinary as a put method ?');
}
/**
* Operation testBodyWithFileSchema
*

View File

@@ -63,10 +63,17 @@ Route::get('/v2/fake', 'FakeController@testEnumParameters');
*/
Route::delete('/v2/fake', 'FakeController@testGroupParameters');
/**
* put testBodyWithBinary
* Summary:
* Notes: For this test, the body has to be a binary file.
*/
Route::put('/v2/fake/body-with-binary', 'FakeController@testBodyWithBinary');
/**
* put testBodyWithFileSchema
* Summary:
* Notes: For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* Notes: For this test, the body for this request must reference a schema named &#x60;File&#x60;.
*/
Route::put('/v2/fake/body-with-file-schema', 'FakeController@testBodyWithFileSchema');