schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package schema names the published JSON Schemas and locates them on disk.

The schemas in the repository's schemas/ directory are normative: they describe the documents DevProof reads, and the Go decoders in pkg/bundle and pkg/policy are one implementation of them, in the same way that pkg/conformance is one implementation of the bundle format specification.

This package exists so the drift test has one place to name them. It deliberately does not embed them into the binary: nothing at runtime validates a document against a schema, because the decoders already reject everything the schema forbids, and shipping a second enforcement path would mean two things to keep in step rather than one.

Index

Constants

View Source
const (
	Bundle             = "bundle.v1alpha1.schema.json"
	BundleLock         = "bundle-lock.v1alpha1.schema.json"
	BundleConfig       = "bundle-config.v1.schema.json"
	VerificationPolicy = "verification-policy.v1alpha1.schema.json"
)

Schema file names, relative to the schemas/ directory.

Variables

This section is empty.

Functions

func All

func All() []string

All lists every published schema.

func Path

func Path(name string) string

Path returns the path of one schema file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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