OAS 3.1 adds a new webhooks section at the top level that is identical to
paths, with the caveat that instead of a /path we have a webhook-name.
The objects contained within are standard Path Item objects
This commit adds #webhooks to the Definition class to return a list
of webhooks. This list contains Webhook objects that inherit from
Path and add a single new method, #name which calls #path
internally
OAS 3.1 adds a new
webhooks
section at the top level that is identical topaths
, with the caveat that instead of a/path
we have awebhook-name
. The objects contained within are standardPath Item
objectsThis commit adds
#webhooks
to theDefinition
class to return a list of webhooks. This list containsWebhook
objects that inherit fromPath
and add a single new method,#name
which calls#path
internallyOfficial example: https://github.com/OAI/OpenAPI-Specification/blob/v3.1.0-dev/examples/v3.1/webhook-example.yaml
Official docs: https://github.com/OAI/OpenAPI-Specification/blob/v3.1.0-dev/versions/3.1.0.md#fixed-fields