package zddc

import _ "embed"

// schemaBytes is the embedded .zddc JSON Schema (draft 2020-12). The
// authoritative machine grammar: it drives the form view (per-property
// x-zddc-tier: structure|option decides editable vs read-only) and client
// validation. Server-side structural validation still lives in validate.go —
// this schema uses $ref + patternProperties, which the in-tree
// internal/jsonschema validator does not yet support.
//
//go:embed zddc.schema.json
var schemaBytes []byte

// ZddcSchemaBytes returns a copy of the embedded .zddc JSON Schema.
func ZddcSchemaBytes() []byte {
	out := make([]byte, len(schemaBytes))
	copy(out, schemaBytes)
	return out
}
