[php] Deprecated annotation on operations and fields (#10085)

This commit is contained in:
Nathan Baulch
2021-08-04 19:29:19 +10:00
committed by GitHub
parent dc23267580
commit ca5de9d503
22 changed files with 82 additions and 35 deletions

View File

@@ -80,7 +80,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Pet
*
*/
public function addPet(Pet $pet, &$responseCode, array &$responseHeaders);
@@ -95,7 +94,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function deletePet($petId, $apiKey = null, &$responseCode, array &$responseHeaders);
@@ -104,12 +102,11 @@ interface PetApiInterface
*
* Finds Pets by status
*
* @param \string[] $status Status values that need to be considered for filter (required)
* @param \string[] $status Status values that need to be considered for filter (required) (deprecated)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Pet[]
*
*/
public function findPetsByStatus(array $status, &$responseCode, array &$responseHeaders);
@@ -123,7 +120,7 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Pet[]
*
* @deprecated
*/
public function findPetsByTags(array $tags, &$responseCode, array &$responseHeaders);
@@ -137,7 +134,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Pet
*
*/
public function getPetById($petId, &$responseCode, array &$responseHeaders);
@@ -151,7 +147,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Pet
*
*/
public function updatePet(Pet $pet, &$responseCode, array &$responseHeaders);
@@ -167,7 +162,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function updatePetWithForm($petId, $name = null, $status = null, &$responseCode, array &$responseHeaders);
@@ -183,7 +177,6 @@ interface PetApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\ApiResponse
*
*/
public function uploadFile($petId, $additionalMetadata = null, UploadedFile $file = null, &$responseCode, array &$responseHeaders);
}

View File

@@ -61,7 +61,6 @@ interface StoreApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function deleteOrder($orderId, &$responseCode, array &$responseHeaders);
@@ -74,7 +73,6 @@ interface StoreApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \int
*
*/
public function getInventory(&$responseCode, array &$responseHeaders);
@@ -88,7 +86,6 @@ interface StoreApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Order
*
*/
public function getOrderById($orderId, &$responseCode, array &$responseHeaders);
@@ -102,7 +99,6 @@ interface StoreApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\Order
*
*/
public function placeOrder(Order $order, &$responseCode, array &$responseHeaders);
}

View File

@@ -61,7 +61,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function createUser(User $user, &$responseCode, array &$responseHeaders);
@@ -75,7 +74,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function createUsersWithArrayInput(array $user, &$responseCode, array &$responseHeaders);
@@ -89,7 +87,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function createUsersWithListInput(array $user, &$responseCode, array &$responseHeaders);
@@ -103,7 +100,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function deleteUser($username, &$responseCode, array &$responseHeaders);
@@ -117,7 +113,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \OpenAPI\Server\Model\User
*
*/
public function getUserByName($username, &$responseCode, array &$responseHeaders);
@@ -132,7 +127,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return \string
*
*/
public function loginUser($username, $password, &$responseCode, array &$responseHeaders);
@@ -145,7 +139,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function logoutUser(&$responseCode, array &$responseHeaders);
@@ -160,7 +153,6 @@ interface UserApiInterface
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
*/
public function updateUser($username, User $user, &$responseCode, array &$responseHeaders);
}

View File

@@ -324,6 +324,7 @@ class PetController extends Controller
*
* @param Request $request The Symfony request to handle.
* @return Response The Symfony response.
* @deprecated
*/
public function findPetsByTagsAction(Request $request)
{