[][src]Attribute Macro json_schema_test_suite::json_schema_test_suite

#[json_schema_test_suite]

Procedural macro that allows a test to be executed for all the configurations defined by JSON-Schema-Test-Suite

The proc_macro_attribute should be used on a function with the current signature

fn my_simple_test(
    // address of the HTTP server providing the remote files of JSON-Schema-Test-Suite. The format will be: `hostname:port`
    // This parameter is passed because by starting a mock server we might not start it into `localhost:1234` as expected by JSON-Schema-Test-Suite
    server_address: &str,
    // Representation of the test case (includes draft_version, descriptions, schema, instance, expected_valid)
    test_case: TestCase,
) {
    // TODO: Add here your testing logic
}