code_corps v0.0.1 CodeCorps.GitHub.Event.Validator behaviour View Source

Default behavior for all GitHub webhook event payload validators.

Link to this section Summary

Callbacks

The only entry point a GitHub webhook event validator function should contain

Link to this section Callbacks

Link to this callback valid?(map) View Source
valid?(map()) :: boolean()

The only entry point a GitHub webhook event validator function should contain.

Receives the GitHub payload, returns true if the payload is in the expected format, false otherwise.