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

Webhook support

Open WyriHaximus opened this issue 3 years ago • 4 comments

I'm aware of #101 but wanted to file this separately since it's a new feature and not a spec upgrade. OAS 3.1 supports webhooks. Would you be open to a PR adding that, and if so give me some pointers so I can start working on that?

WyriHaximus avatar May 29 '21 11:05 WyriHaximus

I have not taken a look into what exactly needs to be changed to support OAS 3.1, but somehow spec objects need to know which version of the spec they are representing and based on that enable the new feature.

If you want to work on that, I am happy to receive a PR.

cebe avatar Jun 01 '21 06:06 cebe

Ok awesome will have a go at it. Already using this package to parse a spec with webhooks, but having webhook support in here will also enable using a validator to pick the correct entity from the webhook call :tada:

WyriHaximus avatar Jun 01 '21 08:06 WyriHaximus

Opened #115 as WIP to add this, probably also contains some changes that handle the 3.0 vs 3.1 detections + the 3.1 spec files

WyriHaximus avatar Jun 01 '21 17:06 WyriHaximus

Hey !

Since #115 has been merged, should we close this one ?

shulard avatar Oct 08 '22 09:10 shulard

Yup, been able to use it with webhooks for some time now :+1:

WyriHaximus avatar Jan 12 '23 22:01 WyriHaximus