Documentation ¶ Overview ¶ Package schema exports snapshot contracts as JSON Schema or OpenAPI components. Index ¶ func Canonical(value map[string]any) ([]byte, error) func EqualJSON(first, second []byte) (bool, error) func Generate(document snapshot.Snapshot, options Options) (map[string]any, error) func Write(writer io.Writer, value map[string]any) error type Options 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 } Source Files ¶ View all Source files schema.go Click to show internal directories. Click to hide internal directories.