From 756f83ab174f27653973e7cb7201aa95fd519395 Mon Sep 17 00:00:00 2001 From: Julian Mehnle Date: Sat, 20 Jul 2024 05:27:01 -0700 Subject: [PATCH] :bug: Fix: Tolerate any string values in github app events array schema (#118) Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> --- pyproject.toml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4f95ae587..735254b68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -358,6 +358,34 @@ source = "https://raw.githubusercontent.com/github/rest-api-description/main/des "repository", "sender", ] } + +# webhook github app events enum schema is not always up to date +# https://github.com/github/rest-api-description/issues/3775 +"/components/schemas/webhooks_issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhooks_issue_2/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-check-suite-completed/properties/check_suite/properties/app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-check-suite-requested/properties/check_suite/properties/app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-check-suite-rerequested/properties/check_suite/properties/app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-deployment-created/properties/deployment/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-deployment-status-created/properties/deployment/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-deployment-status-created/properties/deployment_status/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issue-comment-created/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issue-comment-deleted/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issue-comment-edited/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-closed/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-deleted/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-demilestoned/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-edited/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-labeled/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-locked/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-milestoned/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-opened/properties/changes/properties/old_issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-opened/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-reopened/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-transferred/properties/changes/properties/new_issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-issues-unlocked/properties/issue/properties/performed_via_github_app/properties/events/items" = { enum = "" } +"/components/schemas/webhook-meta-deleted/properties/hook/properties/events/items" = { enum = "" } + # webhook deployment protection rule action is required "/components/schemas/webhook-deployment-protection-rule-requested" = { required = [ "action",