swagger-php icon indicating copy to clipboard operation
swagger-php copied to clipboard

A php swagger annotation and parsing library

Results 50 swagger-php issues
Sort by recently updated
recently updated
newest added

Hello! Thank you for the great package! I encountered a problem with the latest release 4.9.2 - the context is missing `class` attribute now. Please, suggest how to fetch the...

question

I have a route that looks like this ```php class IndexRoute extends Route { public function get(): Response { return $this->createResponse(200, ['foo' => 'bar']); } public function post(): Response {...

question

Time to move on!? Useful features: * property typehints * arrow functions Other things to consider: * bump symfony/finder to ^5.0 * bump symfony/yaml to ^5.0 * bump friendsofphp/php-cs-fixer (dev/suggest)...

Deprecates all processor related methods on `Generator` and provides simpler, more powerful alternatives in the new `Pipeline` class that now internally wraps processors. Also deprecates the unused `ProcessorInterface`.

Given this: ``` @OA\Parameter( parameter="sort_by", name="sort_by", in="query", description="Sort by field", required=false ), ``` Is it possible to add/override Schema in the referenced Parameter or some other way to handle this?...

enhancement
question

success #[OA\HeaderParameter(name: 'Authorization1', description: 'token', in: 'header', required: true, schema: new OA\Schema(type: 'string'))] error #[OA\HeaderParameter(name: 'Authorization', description: 'token', in: 'header', required: true, schema: new OA\Schema(type: 'string'))] Is Authorization a Keyword?why?

question

Fixes #1540 Looking at [packagist stats](https://packagist.org/packages/zircote/swagger-php/php-stats#4) this will affect about 1.5% of users. Moving to 8.1 would bump that number up to 12.5% which seems a bit much in one...

Add (and use) a new `OpenApiException` base exception

enhancement

I encountered an issue while trying to create a fix for our generated enums https://github.com/nelmio/NelmioApiDocBundle/issues/2177 While doing this I noticed that the `AugmentProperties` processor makes sure to set the `oneOf`...

bug
enhancement
question

This is not an issue, I am wondering how to achieve the class based architecture for the `QueryParameter::class` like we use for schema based response. like below ``` class Post...

question