Skip to main content

camel_component_validator/
lib.rs

1//! Schema validation component for XML, JSON, and YAML payloads.
2//!
3//! Endpoint URI format: `validator:<schema>`
4//!
5//! JSON Schema and YAML validation run natively in Rust.
6//! XSD validation is executed through the xml-bridge backend.
7
8pub mod compiled;
9pub mod component;
10pub mod config;
11pub mod error;
12pub mod xsd_bridge;
13
14pub use component::ValidatorComponent;
15pub use config::{SchemaType, ValidatorConfig};
16
17/// Version of the Java XML bridge binary this crate is compatible with.
18pub const BRIDGE_VERSION: &str = "0.1.0";
19
20pub mod proto {
21    tonic::include_proto!("xml_bridge");
22}