Expand description
§baqup-schema
JSON Schema validation and environment variable loading for baqup agent configuration.
⚠️ This is a placeholder crate. Full implementation coming soon.
§What is baqup?
baqup is a container-native backup orchestration system. This crate provides schema validation for agent configuration.
§Planned Features
- JSON Schema validation (draft-2020-12)
- Environment variable loading with type coercion
- Custom format validators (
path,hostname, etc.)
§Example (Preview API)
ⓘ
use baqup_schema::{validate, load_from_env};
// Load and validate from environment variables
let config = load_from_env("agent-schema.json")?;
// Or validate an existing value
let result = validate(&schema, &config)?;Structs§
- Validation
Error - A single validation error
- Validation
Result - Result of schema validation
Enums§
- Schema
Error - Validation error
Constants§
- VERSION
- Crate version
Functions§
- load_
from_ env - Load configuration from environment variables based on schema.
- validate
- Validate a configuration against a baqup agent schema.