Documentation
¶
Overview ¶
Package schema embeds the canonical Prism JSON Schema bundle and exposes a loader for downstream packages.
Schemas live in schema/v1/. Each file has a URN $id of the form urn:prism:schema:v1:<name>. Cross-file $refs are relative paths (e.g. "data.schema.json#/$defs/data") that resolve within the embedded bundle. Validators register each file under both its URN and its filename so relative refs in source resolve identically to URN refs.
Index ¶
Constants ¶
View Source
const URNPrefix = "urn:prism:schema:v1:"
URNPrefix is the canonical URN prefix for all v1 schemas.
View Source
const Version = "v1"
Version is the schema bundle version that //go:embed walks.
Variables ¶
View Source
var FS embed.FS
Functions ¶
func V1Filenames ¶
V1Filenames returns sorted file names (e.g. "spec.schema.json") for every embedded schema file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.