//! JSON Schema registry and validation module.
//!
//! Provides offline-first schema resolution: bundled minimal schemas are
//! embedded in the binary so validation works without network access.
//! Remote schemas can be fetched separately and inserted via
//! [`SchemaRegistry::cache_schema`].
//!
//! ## Architecture
//!
//! - [`registry`] — Schema URL mapping and in-memory cache
//! - [`resolver`] — YAML type detection from parsed content
//! - [`bundled`] — Embedded fallback schemas for offline mode
//!
//! ## Example
//!
//! ```rust
//! use devops_validate::schema::SchemaRegistry;
//!
//! let mut registry = SchemaRegistry::new();
//! let schema = registry.get_schema_sync("k8s/deployment").unwrap();
//! let url = registry.get_schema_url("gitlab-ci").unwrap();
//! assert!(url.contains("schemastore.org"));
//! ```

pub mod bundled;
pub mod registry;
pub mod resolver;

pub use registry::{SchemaError, SchemaRegistry};
pub use resolver::{YamlType, detect_type};
