Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package schema exports snapshot contracts as JSON Schema or OpenAPI components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonical

func Canonical(value map[string]any) ([]byte, error)

func EqualJSON

func EqualJSON(first, second []byte) (bool, error)

func Generate

func Generate(document snapshot.Snapshot, options Options) (map[string]any, error)

func Write

func Write(writer io.Writer, value map[string]any) error

Types

type Options

type Options struct {
	Format  string
	Profile string
}

Jump to

Keyboard shortcuts

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