Skip to main content

Module validator

Module validator 

Source
Expand description

YAML type detection and per-format validation functions.

§Main entry point

validate_auto — auto-detects the YAML format and dispatches to the appropriate validator. Handles multi-document YAML (--- separator).

§Per-format validators

§Helper functions

Functions§

detect_yaml_type
Detect the format of a parsed YAML document.
parse_yaml
Parse a YAML string into a serde_json::Value.
validate_alertmanager
Validate an Alertmanager configuration
validate_ansible
Validate an Ansible playbook
validate_auto
Auto-detect the YAML format and validate it.
validate_docker_compose
Validate a Docker Compose file
validate_github_actions
Validate a GitHub Actions workflow
validate_gitlab_ci
Validate a GitLab CI pipeline YAML
validate_helm_values
Validate a Helm values.yaml file
validate_k8s_manifest
Validate a Kubernetes manifest (all supported resource kinds) via serde.
validate_prometheus
Validate a Prometheus configuration