vespera_macro 0.4.0

Procedural macros for Vespera - automatic route discovery and OpenAPI generation
Documentation
1
2
3
4
5
6
7
8
9
10
#[test]
fn ui_diagnostics() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/route_duplicate_args.rs");
    t.compile_fail("tests/ui/schema_assertion_missing_custom.rs");
    t.pass("tests/ui/schema_assertion_schema_any.rs");
    t.pass("tests/ui/schema_assertion_serde_json_value.rs");
    t.compile_fail("tests/ui/schema_default_unresolvable.rs");
    t.compile_fail("tests/ui/schema_type_bare_missing.rs");
}