[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);
}