conformance

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExamplePayload

func ExamplePayload(event, action string) (map[string]any, error)

ExamplePayload returns a fresh copy of the canonical octokit payload example for an event and action. Push has no action and uses the empty string.

Types

type PayloadExample

type PayloadExample struct {
	Filename string
	Payload  map[string]any
}

PayloadExample is one vendored octokit webhook example.

func PayloadExamples

func PayloadExamples(event string) ([]PayloadExample, error)

PayloadExamples returns fresh decoded payloads for one event family.

type WebhookSchemaValidator

type WebhookSchemaValidator struct {
	// contains filtered or unexported fields
}

func NewWebhookSchemaValidator

func NewWebhookSchemaValidator() *WebhookSchemaValidator

func (*WebhookSchemaValidator) Validate

func (v *WebhookSchemaValidator) Validate(
	event string,
	body []byte,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL