[core] Schema: tests first for validation and compiler determinism (red: 37+11 failing)

This commit is contained in:
2026-11-07 14:34:33 +01:00
parent c1abe88688
commit 9176cc63a4
12 changed files with 1231 additions and 0 deletions
+18
View File
@@ -3,3 +3,21 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Ianitor core: host-file model, validation and compilers. Pure: no I/O, no network.
//!
//! The routes repo holds `ianitor.toml` (site settings) and one TOML file per host.
//! [`load`] turns them into a validated [`Model`]; [`compile::edge`] and [`compile::caddy`]
//! turn the model into the configs of the two engines.
pub mod compile;
pub mod edge_config;
mod error;
mod model;
mod validate;
pub use error::{ValidationError, ValidationErrors};
pub use model::{
AccessLog, Acme, AuthMode, ForwardAuth, HeaderRule, HeaderValue, HealthCheck, Host, Hostname,
Model, Scheme, SecretName, Site, TlsMode, Upstream, UpstreamHost, AUTHELIA_COPY_HEADERS,
LETSENCRYPT_PRODUCTION, LETSENCRYPT_STAGING,
};
pub use validate::{load, SourceFile};