Fix: Tolerate any string values in github app events array schema #118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub generates
check_suite
webhook events withcheck_suite.app.events
containing illegal event names. I filed this upstream at github/rest-api-description#3775.E.g., I'm seeing events like:
I believe the best course of action would be for GitHubKit to not validate the
check_suite.app.events
array element values.Is this an appropriate change?
BTW, is it possible to disable validation in webhook event parsing? My presumption is that as long as the GitHub signature on the event checks out, then the event is trustworthy. Currently my GitHub application is unable to process critical events because GitHub started including these unspecified values in this kinda-unimportant field, and I would really like to go back to processing these events.