//! Bundled JSON Schema for NotarAI spec files.
//!
//! The schema is embedded at compile time via `include_str!` and parsed once
//! into a `serde_json::Value` via `OnceLock`. All callers share the same
//! parsed instance -- never re-parse per call.
use Value;
use OnceLock;
/// The bundled JSON Schema string, embedded at compile time.
pub const SCHEMA_STR: &str = include_str!;
static SCHEMA: = new;
/// Return the bundled schema as a parsed `serde_json::Value`.
///
/// Parsed once on first call; subsequent calls return the cached value.
/// Panics if the bundled schema is not valid JSON (should never happen in a
/// correctly built binary).
/// Return the `$id` URL from the bundled schema, if present.
///
/// Used by `notarai validate` to compare the local schema copy against the
/// bundled version and warn when they diverge.