event-schemas

Event Schema definitions for common events on the Inngest platform

17
0
17
3
Go
public

Event schemas

This repository contains event schema definitions for common events ingested within
Inngest. This allows you to get full type information for common events,
and allows you to generate schemas in multiple languages for each event.

Events are defined using cue, a novel declarative data language. It’s
concise, strongly typed, allows constraining values, defaults, and annotations for extra data.

Converting JSON Schema & OpenAPI definitions to Cue

We use cue as our canonical representation of event types. You can generate
a Cue type definition from an existing JSON schema or API schema:

cue import jsonschema ./path/to/schema.json -o -

This will print the cue type definitions to stdout. You can then take these definitions and add
them to ./defs/${service.cue} to document events.

Go package

The event types are importable using the following package:

go get github.com/inngest/event-schemas/events

You can reference all supported events via events.Events.

v0.3.3[beta]