//! Reference schema builders — $ref and $dynamicRef.
use Value;
/// Create a `$ref` reference to a schema at the given path.
///
/// ```
/// use foundation_jsonschema::scheme;
/// let schema = scheme::ref_("#/$defs/address");
/// // → {"$ref": "#/$defs/address"}
/// ```
/// Create a `$dynamicRef` reference (Draft 2020-12).
///
/// ```
/// use foundation_jsonschema::scheme;
/// let schema = scheme::dynamic_ref("#node");
/// // → {"$dynamicRef": "#node"}
/// ```