mailschema

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 2 Imported by: 0

README

mailschema

The Mail Action Protocol 0.3 artifacts for Go, embedded byte for byte as mailschema.org publishes them: the profile record, the JSON-LD context, and the core, type contract and implementation record schemas. The profile record binds the context and the first two schemas by SHA-256.

go get github.com/mailschema/go@v0.3.0
schema, err := mailschema.Bytes(mailschema.CoreSchema)

Bytes returns an independent copy of ProfileRecord, ContextDocument, CoreSchema, ContractSchema or ImplementationSchema. Schema validation alone does not establish a valid description; see the specification.

Source: mailschema/go. License: MIT.

Documentation

Overview

Package mailschema carries the Mail Action Protocol 0.3 artifacts byte for byte as mailschema.org publishes them: the profile record, the JSON-LD context, and the core, type contract and implementation record schemas. The profile record binds the context and the first two schemas by SHA-256.

Index

Constants

View Source
const Context = "https://mailschema.org/contexts/map-0.3.jsonld"

Context is the JSON-LD context every MAP 0.3 description names.

View Source
const Profile = "https://mailschema.org/profiles/map/0.3"

Profile is the MAP profile these artifacts define.

Variables

This section is empty.

Functions

func Bytes added in v0.3.0

func Bytes(name Artifact) ([]byte, error)

Bytes returns an independent copy of a bundled artifact's exact bytes.

Types

type Artifact added in v0.3.0

type Artifact string

Artifact names a bundled file.

const (
	ProfileRecord        Artifact = "profile.json"
	ContextDocument      Artifact = "context.jsonld"
	CoreSchema           Artifact = "core.schema.json"
	ContractSchema       Artifact = "contract.schema.json"
	ImplementationSchema Artifact = "implementation.schema.json"
)

Jump to

Keyboard shortcuts

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