Skip to content

Commit

Permalink
add support for OpenAPI 3.1 webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Sep 10, 2024
1 parent 96f9974 commit af064f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function createItems(

// Gather x-webhooks endpoints
for (let [path, pathObject] of Object.entries(
openapiData["x-webhooks"] ?? {}
openapiData["x-webhooks"] ?? openapiData["webhooks"] ?? {}
)) {
path = "webhook";
const { $ref, description, parameters, servers, summary, ...rest } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface OpenApiObject {
tags?: TagObject[];
externalDocs?: ExternalDocumentationObject;
swagger?: string;
webhooks?: PathsObject;
"x-webhooks"?: PathsObject;
"x-tagGroups"?: TagGroupObject[];
}
Expand Down

0 comments on commit af064f4

Please sign in to comment.