What happened?
Currently $.pull_request.{base,head}.repo in Pull Request-related events (e.g. pull_request reopened event) is marked as #/definitions/repository, which has a mandatory custom_properties field.
It is a mistake because in GitHub docs, pull_request events do not have such a field there. And this schema will not pass validation with a strict validator.
It is strange because #900 reported the opposite behavior recently. I suppose there might have been an API regression from GitHub side.
Here is an example payload.
Versions
@octokit/webhooks-schemas@7.4.0 with octokit-rs.
Relevant log output
`Error("missing field `custom_properties`", line: 195, column: 17)`
Code of Conduct
What happened?
Currently
$.pull_request.{base,head}.repoin Pull Request-related events (e.g.pull_request reopened event) is marked as#/definitions/repository, which has a mandatorycustom_propertiesfield.It is a mistake because in GitHub docs,
pull_requestevents do not have such a field there. And this schema will not pass validation with a strict validator.It is strange because #900 reported the opposite behavior recently. I suppose there might have been an API regression from GitHub side.
Here is an example payload.
Versions
@octokit/webhooks-schemas@7.4.0withoctokit-rs.Relevant log output
`Error("missing field `custom_properties`", line: 195, column: 17)`Code of Conduct