squarecloud 0.1.1

Async Rust client for the SquareCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[tokio::test]
async fn all_exist_in_openapi() {
    let paths = crate::fetch_spec().await;
    let violations: Vec<String> =
        inventory::iter::<squarecloud::EndpointSpec>()
            .filter_map(|spec| crate::check(&paths, spec.method, spec.path))
            .collect();

    if !violations.is_empty() {
        panic!(
            "{} contract violation(s):\n  {}",
            violations.len(),
            violations.join("\n  ")
        );
    }
}