How can i group all request in single class to single tag? When i use like this:
It doesn't work:
But, when i add tags to all my request it's work.
Can i just declare tag in class attribute?
If there are no endpoints defined either with @OA<method> or with @OA\PathItem, the swagger page shows no output and the application logs the exception:
Required @OA\PathItem() not found at /project/vendor/zircote/swagger-php/src/Loggers/DefaultLogger.php:31
which is a rather misleading messag...
In OpenAPI 3.0 it is possible to define parameters under components.parameters which than can be reused in other parameter definitions with $ref (https://swagger.io/docs/specification/describing-parameters/#common-for-various-paths).
Currently there is no method to define such parameters using attri...
I am using DTOs to model my requests and responses. Its working well for responses but when generating the openapi yaml the Path and QueryParameters are not being picked up. Is it possible to do it like this?
#[
Get(path: '/api/front/{clientId}/c/{targetCountry}/tags[/{id}]'),
Response(...
Source code:
#[OAT\Schema(type: 'string')]
enum StateEnum : string
{
case Info = 'info';
case Success = 'success';
case Warning = 'warning';
case Error = 'error';
}
#[OAT\Schema(type: "string", format: "date-time")]
class SimpleDate {}
#[OAT\Schema()]
class Data
{
#[OAT\Propert...
We try to migrate from Annotations to Attributes, but we have an issue on RequestBody, is not repeatable.
I believe that Attributes\RequestBody should have \Attribute::IS_REPEATABLE added to it.
Hello! I am using zircote's swagger-php and
When I tried to put this on all of my Model files:
/**
* @OA\Info(
* title="RestauAPI",
* version="1.0"
* )
*/
These are the errors that returned to me:
I have tried to put the OA\Info inside the api.php but it was no use. I have tried the nam...
I'm trying to use this library on a rather complex application. One of the struggles I have is that inheritance doesn't seem to work. But documentation doesn't say anything whether it is supposed to work at all.
Here is what I'd like to do:
class A {
#[OA\Response(response: 500, description: "In...
First, let me thank you very much for this very cool project. I have been using swagger-php for some years now in my pet project. Recently I started to migrate to attributes, but I get stuck with the below problem. I already checked the examples and dozens of issues, but couldnt find anything direct...