pub async fn validate_manifest(
manifest: &Manifest,
) -> Result<Vec<ValidationFailure>>Expand description
Validate a WADM application manifest, returning a list of validation failures
At present this can check for:
- unsupported interfaces (i.e. typos, etc)
- unknown packages under known namespaces
- “dangling” links (missing components)
- secrets mapped to unknown policies
Since [ValidationFailure] implements ValidationOutput, you can call valid() and other
trait methods on it:
ⓘ
let messages = validate_manifest(some_path).await?;
let valid = messages.valid();§Arguments
manifest- TheManifestthat should be validated