-
-
Notifications
You must be signed in to change notification settings - Fork 900
feat: add webhook - openapi #5873
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
Conversation
235a006
to
2398d0e
Compare
@@ -227,9 +240,9 @@ private function collectPaths(ApiResource $resource, ResourceMetadataCollection | |||
$openapiOperation = $openapiOperation->withDeprecated((bool) $operation->getOpenapiContext()['deprecated']); | |||
} | |||
|
|||
if ($path) { | |||
if (!$pathItem && $path) { | |||
$pathItem = $paths->getPath($path) ?: new PathItem(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update: just $path should be enough
2398d0e
to
18fc9e5
Compare
Nice! Do you think we could add a functional test to |
d657fc4
to
89432a0
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Possible to configure a webhook via an attribute:
`
#[ApiResource(operations: [
]
)]`
and generate documentation