post_sat_validate

Function post_sat_validate 

Source
pub async fn post_sat_validate(
    ctx: RequestCtx,
    __arg1: Json<PostSatValidateRequest>,
) -> Result<StatusCode, (StatusCode, Json<ErrorResponse>)>
Expand description

POST /api/v1/sat-file/validate — validate a SAT file against live CSM state without mutating anything. Used by manta apply sat-file as a pre-flight check.

Scope: validates the configurations, images, and session_templates sections (cross-references resolved against CFS / IMS / cray-product-catalog). The hardware section is not validated here — invalid hardware[] entries will pass this endpoint with 204 and only surface as failures during apply. This matches the underlying csm-rs validator’s scope; broadening it is tracked as a follow-up.