pub mod catalog;
pub mod enforcement;
pub mod executor;
pub mod integration;
pub mod introspection;
pub mod parser;
pub mod types;
pub mod validator;
pub use validator::ValidationError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum SchemaError {
#[error("Schema validation error: {0}")]
ValidationError(#[from] ValidationError),
#[error("Schema not found: {0}")]
#[allow(dead_code)]
SchemaNotFound(String),
#[error("Schema already exists: {0}")]
#[allow(dead_code)] SchemaAlreadyExists(String),
#[error("Invalid schema definition: {0}")]
#[allow(dead_code)] InvalidDefinition(String),
#[error("Version conflict: {0}")]
#[allow(dead_code)]
VersionConflict(String),
#[error("Catalog error: {0}")]
#[allow(dead_code)]
CatalogError(String),
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
#[error("Serialization error: {0}")]
SerializationError(#[from] serde_json::Error),
}
#[allow(dead_code)] pub type SchemaResult<T> = Result<T, SchemaError>;