swagger-php
swagger-php copied to clipboard
A php swagger annotation and parsing library
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...
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 {...
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?...
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?
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...
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`...
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...