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

parity

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package parity provides the matter.js HEAD schema snapshot to all matter-side parity tests in one embed location. Mirrors matter.js HEAD `packages/model/src/standard/elements/*.element.ts`.

schema.json is the single copy of the extract in this module: the parity tests read it through SchemaJSON, and script/generate_matter_schema.go reads the same file to emit package schema's typed maps. Refresh it with script/extract-from-matter-js.ts (usage block at the end of that file), then run `go generate ./schema/...` — a snapshot refreshed without that second step leaves the generated revision maps describing the old extract, which schema.SchemaSnapshotSHA256 is there to catch.

A host application may pin its own expected copy of these bytes to keep an unintended schema change from arriving silently in a dependency bump; the pin belongs to that repository, not here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SchemaJSON

func SchemaJSON() []byte

SchemaJSON returns the matter.js HEAD schema snapshot as raw JSON bytes. Callers (parity_matterjs_test.go in cluster + model packages) unmarshal into their local cluster/devicetype struct shapes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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