Skip to main content

shape_static_asset

Function shape_static_asset 

Source
pub fn shape_static_asset(
    workload: &StaticAssetWorkload,
) -> Result<(), ShapeError>
Expand description

Shape-validate a kind = "static-asset" workload.

Enforces the closed-catalog invariant: every value in [aliases] must be a filename present in [[asset]]. A mirror’s [asset_aliases] overrides are bound by the same rule and are validated separately at sync time when both the workload and mirror are loaded together.