Updated routes for Workspaces so that create- and updateWebhook include body#93
Updated routes for Workspaces so that create- and updateWebhook include body#93stefankohler wants to merge 3 commits intoMunifTanjim:masterfrom
Conversation
|
Hey @stefankohler , Thanks for the PR. So, most of this library is actually generated from the Bitbucket's API Specification. The Bitbucket's API Specification is generally buggy and has a lot of problems (like the one you found). To solve that, we have the specification/extras/paths.json file where we put the corrections. This file is applied on top of the Bitbucket's API Specification before the generation process is run. So, you'll need to add these changes in the # generate routes.json
yarn run generate:routes
# generate types-schemajson
yarn run generate:types-schema |
|
Hi @MunifTanjim, Thanks for having a look at the PR and for explaining how to actually fix it :) |
The Schema of workspaces.createWebhookForWorkspace and workspaces.updateWebhookForWorkspaces was missing a body to actually provide the webhook details. This is a required 'field' for the Bitbucket API