Merge remote-tracking branch 'origin/master' into 5.2.x

This commit is contained in:
William Cheng
2021-03-26 10:20:36 +08:00
669 changed files with 1327 additions and 41749 deletions

View File

@@ -257,6 +257,7 @@ class PetController extends Controller
$asserts[] = new Assert\All([
new Assert\Type("string"),
]);
$asserts[] = new Assert\Valid();
$response = $this->validate($status, $asserts);
if ($response instanceof Response) {
return $response;
@@ -345,6 +346,7 @@ class PetController extends Controller
$asserts[] = new Assert\All([
new Assert\Type("string"),
]);
$asserts[] = new Assert\Valid();
$response = $this->validate($tags, $asserts);
if ($response instanceof Response) {
return $response;

View File

@@ -163,8 +163,8 @@ class UserController extends Controller
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\All([
new Assert\Type("OpenAPI\Server\Model\User"),
new Assert\Valid(),
]);
$asserts[] = new Assert\Valid();
$response = $this->validate($body, $asserts);
if ($response instanceof Response) {
return $response;
@@ -242,8 +242,8 @@ class UserController extends Controller
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\All([
new Assert\Type("OpenAPI\Server\Model\User"),
new Assert\Valid(),
]);
$asserts[] = new Assert\Valid();
$response = $this->validate($body, $asserts);
if ($response instanceof Response) {
return $response;