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