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 resolver;
13pub mod xsd_bridge;
14
15pub use component::ValidatorComponent;
16pub use config::{SchemaType, ValidatorConfig};
17pub use resolver::{FilesystemResolver, ResourceResolver};
18
19/// Version of the Java XML bridge binary this crate is compatible with.
20pub const BRIDGE_VERSION: &str = "0.3.0";
21
22pub mod proto {
23    tonic::include_proto!("xml_bridge");
24}