schemagen

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion   = "1.0.0"
	SchemaDialect   = "https://json-schema.org/draft/2020-12/schema"
	SchemaMediaType = "application/schema+json"
	SchemaIDPrefix  = "urn:meido-serialization:editing-json:v1:"
)

Variables

This section is empty.

Functions

func GenerateAll

func GenerateAll() (map[string]Document, error)

func Specs

func Specs() []string

Types

type Document

type Document struct {
	FormatID  string
	Version   string
	ID        string
	Dialect   string
	MediaType string
	JSON      []byte
	SHA256    string
}

func Generate

func Generate(formatID string) (Document, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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