Skip to main content

validate_repository_replication

Function validate_repository_replication 

Source
pub fn validate_repository_replication(
    spec: &RepositoryReplicationSpec,
) -> Vec<ValidationError>
Expand description

Validate a RepositoryReplication spec, accumulating all problems (ADR-0005 §13(d)): the sourceRef is well-formed, the schedule cron parses, the destination backend’s content is valid, and (when a mover is set) it’s well-formed. The “destination differs from source” rule needs the resolved source backend, which this pure validator cannot fetch — the webhook resolves it and calls replication_destination_differs separately.