You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to create controllers interfaces and expect to see file like this https://github.com/swagger-api/swagger-codegen/blob/master/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php.
But after generation, i dont' see @return Swagger\Server\Model\Pet[]
/** * Operation findPetsByStatus * * Finds Pets by status * * @param array $status Status values that need to be considered for filter (required) * @param int &$responseCode The HTTP Response Code * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return array|object|null */publicfunction findPetsByStatus(array$status, int &$responseCode, array &$responseHeaders): array|object|null;`
instead of:
/** * Operation findPetsByStatus * * Finds Pets by status * * @param string[] $status Status values that need to be considered for filter (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return Swagger\Server\Model\Pet[] * */publicfunction findPetsByStatus(array$status, &$responseCode, array &$responseHeaders);
Could you help me and say where is my mistake?
Swagger-codegen version
I tried to use v6.6.0 and latest version. Nothing happens.
Description
Hello!
I tried to create controllers interfaces and expect to see file like this
https://github.com/swagger-api/swagger-codegen/blob/master/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php
.But after generation, i dont' see @return Swagger\Server\Model\Pet[]
instead of:
Could you help me and say where is my mistake?
Swagger-codegen version
I tried to use v6.6.0 and latest version. Nothing happens.
Swagger declaration file content or url
I used content of file https://petstore.swagger.io/v2/swagger.json.
Command line used for generation
Steps to reproduce
The text was updated successfully, but these errors were encountered: