pub async fn validate_manifest_file(
path: impl AsRef<Path>,
) -> Result<(Manifest, 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)
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
path- Path to the Manifest that will be read into memory and validated