Closed WyriHaximus closed 2 years ago
@cebe Will rebase and push later tonight 👍
@cebe Rebased it, is there any specific testing I should add reside from the existing change?
Webhook property check should depend in the openapi Version. Only require webhook in 3.1 and keep old behavior in 3.0.
Also would be good to have a WebHookTest which checks basic webhook example
Webhook property check should depend in the openapi Version. Only require webhook in 3.1 and keep old behavior in 3.0.
Done that just now
Also would be good to have a WebHookTest which checks basic webhook example
Doing this tomorrow :+1:
Rebased now that #129 has been merged.
Also would be good to have a WebHookTest which checks basic webhook example
Doing this tomorrow +1
@cebe Basic variant for this is in (been since nearly two weeks but details :stuck_out_tongue: ), do you want me to expand it, or rely on the tests added from #129?
been since nearly two weeks but details
I'm not better in this, so not judging you ;-)
Tests are fine, I just wonder about implementation. I tried to follow the spec quite stricly in which Objects are described. There is a "Paths" object in the spec but no "Webhooks" object, which is not consistent. Need to decide if it's fine for the implementation to break with the strict dependence on the spec or not.
I tried to follow the spec quite stricly in which Objects are described. There is a "Paths" object in the spec but no "Webhooks" object, which is not consistent. Need to decide if it's fine for the implementation to break with the strict dependence on the spec or not.
Just dropped the WebHooks
class of in a new commit so you can compare both.
Thanks, looks good.
Tests are failing with Error: Class 'cebe\openapi\spec\WebHooks' not found
Tests are failing with
Error: Class 'cebe\openapi\spec\WebHooks' not found
Whoops, want me to squash both commits into one?
Squashed both commits together
Thank you!
No problem, looking forward to having full support in
@WyriHaximus please rebase this on the
openapi-31
branch. We'll add all 3.1 features to that branch and merge it into master when ready.