-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two paths for same method #770
Comments
What is the error that is thrown? Could you provide a minimal working example of what you have so people can try and reproduce? |
Sorry, I forgot to add the exception:
Stacktrace
As you can see I am using the L5-Swagger package to generate a swagger doc for my laravel project. The package heavily depends on this one where the exception gets thrown. The error can be reproduced by adding
Running |
As you can see, https://github.com/zircote/swagger-php/blob/069e6e59bb06db808961bcad1bc3cc0f82869adb/src/Annotations/PathItem.php doesn't support e.g. https://github.com/zircote/swagger-php/blob/master/src/Annotations/Schema.php#L28 does. If it should, best would be to open a PR for it. |
Path Item Object does support ref https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#pathItemObject Added support to the annotation, will be fixed in the next release. |
@bfanger PathItem cannot be used with a class method:
How can we use the same documentation for different paths/class methods? |
I guess that would be a feature request. See #1485 |
@DerManoMann it's still not working properly, at least from the point of view of
... and it looks like it's working, but with the following warnings:
|
Hello,
I am trying to achieve something similiar to this stackoverflow question.
I tried this approach
with the current annotations
@OA\Post
and@OA\PathItem
but using the fieldref
throws an error.Am I missing something or is this just not possible anymore?
The text was updated successfully, but these errors were encountered: