1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Validation surface for GLDF files.
//!
//! Two complementary walkers, both producing structured findings against
//! a parsed [`crate::gldf::GldfProduct`]:
//!
//! - **[`engine`](crate::validation::engine)** — schema-rule validation (required fields, reference
//! integrity, data consistency). Reports [`ValidationError`] with a
//! [`ValidationLevel`] severity. Predates the rc.4 work.
//! - **[`canonical`](crate::validation::canonical)** — closed-XSD-enum value validation. Walks every
//! field bound to an `<xs:enumeration>` and reports any value outside
//! the canonical set as a [`Violation`](crate::validation::Violation). Powers the viewer's
//! ⚠ banner and is callable from any consumer (CLI, FFI, server).
//! - **[`xsd_enums`](crate::validation::xsd_enums)** — the canonical-values tables themselves
//! (IK ratings, IP codes, hazardous-area enums, etc.). Pure data,
//! shared by `canonical` and the editor's dropdown widgets.
//!
//! Living under `gldf-rs-lib` (the parser side) rather than the WASM
//! viewer keeps it dep-free of `yew`/`web-sys`/`gloo`, so the FFI/Python
//! and any future CLI lints reuse the same enum tables and walker
//! without pulling a browser runtime.
// Engine surface — original schema-rule validator. Re-exported flat so
// existing `gldf_rs::validation::ValidationError` paths keep working
// after the file → folder split.
pub use ;
// Canonical-enum walker surface.
pub use ;
// XSD-validator surface — selectable rc-3 / rc-4 schema check via uppsala.
// Version-less entry points default to `DEFAULT_VALIDATION_SCHEMA` (the
// latest published rc = rc-3 today); the `*_with_schema` variants take an
// explicit `GldfSchemaVersion` so rc-4 can be validated before it ships.
pub use ;