type

Manifest

type Manifest struct { snapshot Snapshot }

An immutable versioned schema contract.

Source schema/manifest.go:681

Snapshot()Snapshot
A deep copy safe for callers to mutate.
Bytes()([]byte, error)
Canonical deterministic JSON.
Equal(other)bool
Deep manifest equality.

Manifest owns a deep copy. Its bytes are deterministic for the same resolved config; public accessors never expose mutable internal state.

Methods

  • Manifest.Bytes()

    Bytes returns the canonical indented manifest encoding with one trailing newline, suitable for generated artifacts and golden fixtures.

  • Manifest.Equal()

    Equal reports whether two manifests have byte-identical canonical encodings.

  • Manifest.MarshalJSON()

    MarshalJSON implements json.Marshaler without exposing mutable internals.

  • Manifest.Snapshot()

    Snapshot returns a deep copy of the manifest.

  • Manifest.UnmarshalJSON()

    UnmarshalJSON replaces a manifest only after Parse validates the complete encoded value.